1
1
{
2
- "parser": "babel-eslint",
3
- "rules": {
4
- "strict": 0
5
- },
6
2
"env": {
7
3
"browser": true,
8
4
"node": true,
9
5
"es6": true,
10
6
"amd": true
11
7
},
12
8
"ecmaFeatures": {
13
- "jsx": true ,
9
+ "jsx": false ,
14
10
"superInFunctions": false,
15
11
"classes": false,
16
12
"modules": [2]
17
13
},
18
14
"rules": {
15
+ "arrow-parens": [2, "as-needed"],
16
+ "arrow-spacing": [2, {"before": true, "after": true}],
19
17
"block-scoped-var": [0],
20
18
"brace-style": [2, "1tbs", { "allowSingleLine": true }],
21
19
"camelcase": [0],
33
31
"func-names": [0],
34
32
"func-style": [0, "declaration"],
35
33
"generator-star-spacing": [2, "after"],
36
- "strict": [2, "always"],
37
34
"guard-for-in": [0],
38
35
"handle-callback-err": [0],
36
+ "indent": ["error", "tab", {"VariableDeclarator": {"var": 1, "let": 1, "const": 1}, "SwitchCase": 1}],
39
37
"key-spacing": [2, { "beforeColon": false, "afterColon": true }],
40
38
"quotes": [2, "double", "avoid-escape"],
41
39
"max-depth": [0, 4],
46
44
"new-parens": [2],
47
45
"new-cap": [2, { "capIsNewExceptions": ["ToInteger", "ToObject", "ToPrimitive", "ToUint32"] }],
48
46
"newline-after-var": [0],
47
+ "newline-before-return": [2],
49
48
"no-alert": [2],
50
49
"no-array-constructor": [2],
51
50
"no-bitwise": [0],
64
63
"no-duplicate-case": [2],
65
64
"no-else-return": [0],
66
65
"no-empty": [2],
67
- "no-empty-label": [2],
68
66
"no-eq-null": [0],
69
67
"no-eval": [2],
70
68
"no-ex-assign": [2],
71
69
"no-extend-native": [1],
72
70
"no-extra-bind": [2],
73
71
"no-extra-boolean-cast": [2],
74
- "no-extra-parens": [0],
75
72
"no-extra-semi": [1],
76
73
"no-empty-character-class": [2],
77
74
"no-fallthrough": [2],
97
94
"no-negated-in-lhs": [2],
98
95
"no-nested-ternary": [0],
99
96
"no-new": [2],
100
- "no-new-func": [2 ],
97
+ "no-new-func": [0 ],
101
98
"no-new-object": [2],
102
99
"no-new-require": [0],
103
100
"no-new-wrappers": [2],
113
110
"no-redeclare": [2],
114
111
"no-regex-spaces": [2],
115
112
"no-reserved-keys": [0],
116
- "no-restricted -modules": [0],
113
+ "no-reno-new-funced -modules": [0],
117
114
"no-return-assign": [2],
118
115
"no-script-url": [2],
119
116
"no-self-compare": [0],
120
117
"no-sequences": [2],
121
118
"no-shadow": [2],
122
119
"no-shadow-restricted-names": [2],
123
- "semi-spacing": [2],
124
120
"no-spaced-func": [2],
125
121
"no-sparse-arrays": [2],
126
122
"no-sync": [0],
133
129
"no-underscore-dangle": [0],
134
130
"no-unreachable": [2],
135
131
"no-unused-expressions": [2],
136
- "no-unused-vars": [1 , { "vars": "all", "args": "after-used" }],
132
+ "no-unused-vars": [2 , { "vars": "all", "args": "after-used" }],
137
133
"no-use-before-define": [2],
138
134
"no-void": [0],
139
135
"no-warning-comments": [0, { "terms": ["todo", "fixme", "xxx"], "location": "start" }],
148
144
"semi": [2],
149
145
"semi-spacing": [2, { "before": false, "after": true }],
150
146
"sort-vars": [0],
151
- "space-after-keywords ": [2, "always" ],
147
+ "keyword-spacing ": [2],
152
148
"space-before-function-paren": [2, { "anonymous": "always", "named": "always" }],
153
- "space-before-blocks": [0 , "always"],
149
+ "space-before-blocks": [2 , "always"],
154
150
"space-in-brackets": [0, "never", {
155
151
"singleValue": true,
156
152
"arraysInArrays": false,
161
157
}],
162
158
"space-in-parens": [2, "never"],
163
159
"space-infix-ops": [2],
164
- "space-return-throw-case": [2],
165
160
"space-unary-ops": [2, { "words": true, "nonwords": false }],
166
161
"spaced-line-comment": [0, "always"],
167
- "strict": [1 ],
162
+ "strict": [0 ],
168
163
"use-isnan": [2],
169
164
"valid-jsdoc": [0],
170
165
"valid-typeof": [2],
173
168
"wrap-regex": [2],
174
169
"yoda": [2, "never", { "exceptRange": true }]
175
170
}
176
- }
171
+ }
0 commit comments