forked from mistic100/Photo-Sphere-Viewer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.json
107 lines (107 loc) · 2.11 KB
/
.eslintrc.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
{
"extends": "airbnb-base",
"parser": "babel-eslint",
"env": {
"browser": true,
"es6": true
},
"rules": {
"arrow-body-style": "off",
"class-methods-use-this": "off",
"import/no-cycle": "off",
"import/prefer-default-export": "off",
"key-spacing": "off",
"no-bitwise": "off",
"no-else-return": "off",
"no-multiple-empty-lines": "off",
"no-param-reassign": "off",
"no-plusplus": "off",
"no-restricted-properties": "off",
"no-underscore-dangle": "off",
"no-useless-constructor": "off",
"no-unused-expressions": "off",
"object-curly-newline": "off",
"prefer-destructuring": "off",
"prefer-template": "off",
"no-mixed-operators": "off",
"no-restricted-globals": "off",
"arrow-parens": [
"error",
"as-needed",
{
"requireForBlockBody": true
}
],
"max-len": [
"error",
150
],
"brace-style": [
"error",
"stroustrup"
],
"comma-dangle": [
"error",
{
"objects": "always-multiline",
"arrays": "always-multiline",
"functions": "never"
}
],
"padded-blocks": [
"error",
{
"classes": "always",
"blocks": "never",
"switches": "never"
}
],
"no-console": [
"error",
{
"allow": [
"warn",
"error"
]
}
],
"object-shorthand": [
"error",
"consistent-as-needed"
],
"no-use-before-define": [
"error",
{
"functions": false,
"classes": true,
"variables": true
}
],
"quote-props": [
"error",
"consistent-as-needed"
],
"lines-between-class-members": [
"error",
"always",
{
"exceptAfterSingleLine": true
}
],
"no-restricted-syntax": [
"error",
"ForInStatement",
"LabeledStatement",
"WithStatement"
],
"import/no-unresolved": [
"error",
{
"ignore": [
"^photo-sphere-viewer$",
"^photo-sphere-viewer\/dist\/plugins\/([a-z-]+)$"
]
}
]
}
}