|
1 | 1 | { |
2 | | - "env":{ |
| 2 | + "env": { |
3 | 3 | "es6": true |
4 | 4 | }, |
5 | 5 | "rules": { |
|
83 | 83 | "no-labels": 2, |
84 | 84 | "no-lone-blocks": 2, |
85 | 85 | "no-loop-func": 2, |
86 | | - "no-magic-numbers": [2, {"ignoreArrayIndexes": true, "enforceConst": true }], |
| 86 | + "no-magic-numbers": [ |
| 87 | + 2, |
| 88 | + { |
| 89 | + "ignore": [0,1,-1], |
| 90 | + "ignoreArrayIndexes": true, |
| 91 | + "enforceConst": true |
| 92 | + } |
| 93 | + ], |
87 | 94 | "no-multi-spaces": 2, |
88 | 95 | "no-multi-str": 2, |
89 | 96 | "no-native-reassign": 2, |
|
128 | 135 | "no-undef-init": 2, |
129 | 136 | "no-undefined": 2, |
130 | 137 | "no-unused-vars": 2, |
131 | | - "no-use-before-define": [2, {"functions": false, "classes": true}], |
| 138 | + "no-use-before-define": [ |
| 139 | + 2, |
| 140 | + { |
| 141 | + "functions": false, |
| 142 | + "classes": true |
| 143 | + } |
| 144 | + ], |
132 | 145 | // node.js and commonjs |
133 | 146 | "callback-return": 2, |
134 | 147 | "global-require": 2, |
|
177 | 190 | ], |
178 | 191 | "lines-around-comment": 2, |
179 | 192 | "max-depth": 2, |
180 | | - "max-len": [2, 120], |
| 193 | + "max-len": [ |
| 194 | + 2, |
| 195 | + 120 |
| 196 | + ], |
181 | 197 | "max-nested-callbacks": 2, |
182 | 198 | "max-params": 2, |
183 | 199 | "max-statements": 2, |
184 | 200 | "new-cap": 2, |
185 | 201 | "new-parens": 2, |
186 | 202 | "newline-after-var": 2, |
187 | 203 | "newline-before-return": 0, |
188 | | - "newline-per-chained-call": [2, {"ignoreChainWithDepth": 3}], |
| 204 | + "newline-per-chained-call": [ |
| 205 | + 2, |
| 206 | + { |
| 207 | + "ignoreChainWithDepth": 3 |
| 208 | + } |
| 209 | + ], |
189 | 210 | "no-array-constructor": 2, |
190 | 211 | "no-bitwise": 2, |
191 | 212 | "no-continue": 2, |
|
223 | 244 | "keywords": true |
224 | 245 | } |
225 | 246 | ], |
226 | | - "quotes": [2, "single"], |
| 247 | + "quotes": [ |
| 248 | + 2, |
| 249 | + "single" |
| 250 | + ], |
227 | 251 | "require-jsdoc": 0, |
228 | 252 | "semi": 2, |
229 | 253 | "semi-spacing": 2, |
230 | 254 | "sort-imports": 2, |
231 | 255 | "sort-vars": 2, |
232 | 256 | "space-before-blocks": 2, |
233 | | - "space-before-function-paren": [2, { "anonymous": "always", "named": "never" }], |
| 257 | + "space-before-function-paren": [ |
| 258 | + 2, |
| 259 | + { |
| 260 | + "anonymous": "always", |
| 261 | + "named": "never" |
| 262 | + } |
| 263 | + ], |
234 | 264 | "space-in-parens": 2, |
235 | 265 | "space-infix-ops": 2, |
236 | 266 | "space-unary-ops": 2, |
237 | 267 | "spaced-comment": 0, |
238 | 268 | "wrap-regex": 0, |
239 | 269 | // ECMAScript 6 |
240 | 270 | "arrow-body-style": 2, |
241 | | - "arrow-parens": [2, "as-needed"], |
| 271 | + "arrow-parens": [ |
| 272 | + 2, |
| 273 | + "as-needed" |
| 274 | + ], |
242 | 275 | "arrow-spacing": 2, |
243 | 276 | "constructor-super": 2, |
244 | 277 | "generator-star-spacing": 2, |
|
0 commit comments