|
| 1 | +{ |
| 2 | + "rules": { |
| 3 | + "comma-dangle": [ |
| 4 | + 2, |
| 5 | + "never" |
| 6 | + ], |
| 7 | + "no-cond-assign": 2, |
| 8 | + "no-console": 1, |
| 9 | + "no-constant-condition": 1, |
| 10 | + "no-control-regex": 2, |
| 11 | + "no-debugger": 1, |
| 12 | + "no-dupe-args": 2, |
| 13 | + "no-dupe-keys": 2, |
| 14 | + "no-duplicate-case": 2, |
| 15 | + "no-empty-character-class": 2, |
| 16 | + "no-empty": 1, |
| 17 | + "no-ex-assign": 2, |
| 18 | + "no-extra-boolean-cast": 0, |
| 19 | + "no-extra-parens": 2, |
| 20 | + "no-extra-semi": 2, |
| 21 | + "no-func-assign": 2, |
| 22 | + "no-inner-declarations": 2, |
| 23 | + "no-invalid-regexp": 2, |
| 24 | + "no-irregular-whitespace": 2, |
| 25 | + "no-negated-in-lhs": 2, |
| 26 | + "no-obj-calls": 2, |
| 27 | + "no-regex-spaces": 2, |
| 28 | + "no-sparse-arrays": 2, |
| 29 | + "no-unreachable": 1, |
| 30 | + "use-isnan": 2, |
| 31 | + "valid-jsdoc": [ |
| 32 | + 2, |
| 33 | + { |
| 34 | + "requireParamDescription": false, |
| 35 | + "requireReturnDescription": false |
| 36 | + } |
| 37 | + ], |
| 38 | + "valid-typeof": 2, |
| 39 | + "no-unexpected-multiline": 2, |
| 40 | + "accessor-pairs": 2, |
| 41 | + "block-scoped-var": 2, |
| 42 | + "complexity": [ |
| 43 | + 1, |
| 44 | + 10 |
| 45 | + ], |
| 46 | + "consistent-return": 2, |
| 47 | + "curly": 2, |
| 48 | + "default-case": 0, |
| 49 | + "dot-notation": 2, |
| 50 | + "dot-location": [ |
| 51 | + 2, |
| 52 | + "property" |
| 53 | + ], |
| 54 | + "eqeqeq": 2, |
| 55 | + "guard-for-in": 2, |
| 56 | + "no-alert": 2, |
| 57 | + "no-caller": 2, |
| 58 | + "no-div-regex": 2, |
| 59 | + "no-else-return": 0, |
| 60 | + "no-empty-label": 2, |
| 61 | + "no-eq-null": 2, |
| 62 | + "no-eval": 2, |
| 63 | + "no-extend-native": 2, |
| 64 | + "no-extra-bind": 2, |
| 65 | + "no-fallthrough": 2, |
| 66 | + "no-floating-decimal": 2, |
| 67 | + "no-implicit-coercion": 2, |
| 68 | + "no-implied-eval": 2, |
| 69 | + "no-invalid-this": 0, |
| 70 | + "no-iterator": 2, |
| 71 | + "no-labels": 2, |
| 72 | + "no-lone-blocks": 2, |
| 73 | + "no-loop-func": 2, |
| 74 | + "no-multi-spaces": 2, |
| 75 | + "no-multi-str": 2, |
| 76 | + "no-native-reassign": 2, |
| 77 | + "no-new-func": 2, |
| 78 | + "no-new-wrappers": 2, |
| 79 | + "no-new": 2, |
| 80 | + "no-octal-escape": 2, |
| 81 | + "no-octal": 2, |
| 82 | + "no-param-reassign": [ |
| 83 | + 2, |
| 84 | + { |
| 85 | + "props": false |
| 86 | + } |
| 87 | + ], |
| 88 | + "no-process-env": 2, |
| 89 | + "no-proto": 2, |
| 90 | + "no-redeclare": [ |
| 91 | + 2, |
| 92 | + { |
| 93 | + "builtinGlobals": true |
| 94 | + } |
| 95 | + ], |
| 96 | + "no-return-assign": 2, |
| 97 | + "no-script-url": 2, |
| 98 | + "no-self-compare": 2, |
| 99 | + "no-sequences": 2, |
| 100 | + "no-throw-literal": 2, |
| 101 | + "no-unused-expressions": 2, |
| 102 | + "no-useless-call": 2, |
| 103 | + "no-void": 2, |
| 104 | + "no-warning-comments": [ |
| 105 | + 1, |
| 106 | + { |
| 107 | + "terms": [ |
| 108 | + "todo", |
| 109 | + "@toto" |
| 110 | + ], |
| 111 | + "location": "start" |
| 112 | + } |
| 113 | + ], |
| 114 | + "no-with": 2, |
| 115 | + "radix": 2, |
| 116 | + "vars-on-top": 2, |
| 117 | + "wrap-iife": [ |
| 118 | + 2, |
| 119 | + "inside" |
| 120 | + ], |
| 121 | + "yoda": 0, |
| 122 | + "strict": [ |
| 123 | + 2, |
| 124 | + "never" |
| 125 | + ], |
| 126 | + "init-declarations": [ |
| 127 | + 2, |
| 128 | + "never" |
| 129 | + ], |
| 130 | + "no-catch-shadow": 2, |
| 131 | + "no-delete-var": 2, |
| 132 | + "no-label-var": 2, |
| 133 | + "no-shadow-restricted-names": 2, |
| 134 | + "no-shadow": [ |
| 135 | + 2, |
| 136 | + { |
| 137 | + "builtinGlobals": false, |
| 138 | + "hoist": "functions" |
| 139 | + } |
| 140 | + ], |
| 141 | + "no-undef-init": 2, |
| 142 | + "no-undef": 2, |
| 143 | + "no-undefined": 2, |
| 144 | + "no-unused-vars": 2, |
| 145 | + "no-use-before-define": 2, |
| 146 | + "callback-return": 2, |
| 147 | + "handle-callback-err": 2, |
| 148 | + "no-mixed-requires": 0, |
| 149 | + "no-new-require": 2, |
| 150 | + "no-path-concat": 2, |
| 151 | + "no-process-exit": 2, |
| 152 | + "no-sync": 0, |
| 153 | + "array-bracket-spacing": [ |
| 154 | + 2, |
| 155 | + "never" |
| 156 | + ], |
| 157 | + "block-spacing": [ |
| 158 | + 2, |
| 159 | + "always" |
| 160 | + ], |
| 161 | + "brace-style": [ |
| 162 | + 2, |
| 163 | + "1tbs", |
| 164 | + { |
| 165 | + "allowSingleLine": true |
| 166 | + } |
| 167 | + ], |
| 168 | + "camelcase": [ |
| 169 | + 2, |
| 170 | + { |
| 171 | + "properties": "always" |
| 172 | + } |
| 173 | + ], |
| 174 | + "comma-spacing": [ |
| 175 | + 2, |
| 176 | + { |
| 177 | + "before": false, |
| 178 | + "after": true |
| 179 | + } |
| 180 | + ], |
| 181 | + "comma-style": [ |
| 182 | + 2, |
| 183 | + "last" |
| 184 | + ], |
| 185 | + "computed-property-spacing": [ |
| 186 | + 2, |
| 187 | + "never" |
| 188 | + ], |
| 189 | + "consistent-this": [ |
| 190 | + 2, |
| 191 | + "self" |
| 192 | + ], |
| 193 | + "eol-last": 2, |
| 194 | + "func-names": 0, |
| 195 | + "func-style": [ |
| 196 | + 2, |
| 197 | + "expression" |
| 198 | + ], |
| 199 | + "id-length": [ |
| 200 | + 2, |
| 201 | + { |
| 202 | + "min": 2, |
| 203 | + "max": 30, |
| 204 | + "exceptions": [ |
| 205 | + "_" |
| 206 | + ] |
| 207 | + } |
| 208 | + ], |
| 209 | + "id-match": [ |
| 210 | + 2, |
| 211 | + "(^[A-Za-z]+(?:[A-Z][a-z]*)*\\d*$)|(^[A-Z]+(_[A-Z]+)*(_\\d$)*$)|(^(_|\\$)$)", |
| 212 | + { |
| 213 | + "properties": true |
| 214 | + } |
| 215 | + ], |
| 216 | + "indent": [ |
| 217 | + 2, |
| 218 | + 4 |
| 219 | + ], |
| 220 | + "key-spacing": [ |
| 221 | + 2, |
| 222 | + { |
| 223 | + "beforeColon": false, |
| 224 | + "afterColon": true |
| 225 | + } |
| 226 | + ], |
| 227 | + "lines-around-comment": [ |
| 228 | + 2, |
| 229 | + { |
| 230 | + "beforeBlockComment": true, |
| 231 | + "beforeLineComment": false |
| 232 | + } |
| 233 | + ], |
| 234 | + "linebreak-style": [ |
| 235 | + 2, |
| 236 | + "unix" |
| 237 | + ], |
| 238 | + "max-nested-callbacks": [ |
| 239 | + 1, |
| 240 | + 3 |
| 241 | + ], |
| 242 | + "new-cap": [ |
| 243 | + 2, |
| 244 | + { |
| 245 | + "newIsCap": true, |
| 246 | + "capIsNew": false |
| 247 | + } |
| 248 | + ], |
| 249 | + "new-parens": 2, |
| 250 | + "newline-after-var": [ |
| 251 | + 2, |
| 252 | + "always" |
| 253 | + ], |
| 254 | + "no-array-constructor": 2, |
| 255 | + "no-continue": 2, |
| 256 | + "no-inline-comments": 2, |
| 257 | + "no-lonely-if": 2, |
| 258 | + "no-mixed-spaces-and-tabs": 2, |
| 259 | + "no-multiple-empty-lines": [ |
| 260 | + 2, |
| 261 | + { |
| 262 | + "max": 2 |
| 263 | + } |
| 264 | + ], |
| 265 | + "no-nested-ternary": 2, |
| 266 | + "no-new-object": 2, |
| 267 | + "no-spaced-func": 2, |
| 268 | + "no-ternary": 0, |
| 269 | + "no-trailing-spaces": 2, |
| 270 | + "no-underscore-dangle": 2, |
| 271 | + "no-unneeded-ternary": 2, |
| 272 | + "object-curly-spacing": [ |
| 273 | + 2, |
| 274 | + "never" |
| 275 | + ], |
| 276 | + "one-var": [ |
| 277 | + 2, |
| 278 | + "always" |
| 279 | + ], |
| 280 | + "operator-assignment": [ |
| 281 | + 2, |
| 282 | + "always" |
| 283 | + ], |
| 284 | + "operator-linebreak": [ |
| 285 | + 2, |
| 286 | + "after" |
| 287 | + ], |
| 288 | + "padded-blocks": [ |
| 289 | + 2, |
| 290 | + "never" |
| 291 | + ], |
| 292 | + "quote-props": [ |
| 293 | + 2, |
| 294 | + "as-needed" |
| 295 | + ], |
| 296 | + "quotes": [ |
| 297 | + 2, |
| 298 | + "single" |
| 299 | + ], |
| 300 | + "semi-spacing": [ |
| 301 | + 2, |
| 302 | + { |
| 303 | + "before": false, |
| 304 | + "after": true |
| 305 | + } |
| 306 | + ], |
| 307 | + "semi": [ |
| 308 | + 2, |
| 309 | + "always" |
| 310 | + ], |
| 311 | + "sort-vars": 2, |
| 312 | + "space-after-keywords": [ |
| 313 | + 2, |
| 314 | + "always" |
| 315 | + ], |
| 316 | + "space-before-blocks": [ |
| 317 | + 2, |
| 318 | + "always" |
| 319 | + ], |
| 320 | + "space-before-function-paren": [ |
| 321 | + 2, |
| 322 | + "always" |
| 323 | + ], |
| 324 | + "space-in-parens": [ |
| 325 | + 2, |
| 326 | + "never" |
| 327 | + ], |
| 328 | + "space-infix-ops": 2, |
| 329 | + "space-return-throw-case": 2, |
| 330 | + "space-unary-ops": [ |
| 331 | + 2, |
| 332 | + { |
| 333 | + "words": true, |
| 334 | + "nonwords": false |
| 335 | + } |
| 336 | + ], |
| 337 | + "spaced-comment": [ |
| 338 | + 2, |
| 339 | + "always" |
| 340 | + ], |
| 341 | + "wrap-regex": 0, |
| 342 | + "arrow-parens": [ |
| 343 | + 2, |
| 344 | + "always" |
| 345 | + ], |
| 346 | + "arrow-spacing": [ |
| 347 | + 2, |
| 348 | + { |
| 349 | + "before": true, |
| 350 | + "after": true |
| 351 | + } |
| 352 | + ], |
| 353 | + "constructor-super": 2, |
| 354 | + "generator-star-spacing": [ |
| 355 | + 2, |
| 356 | + { |
| 357 | + "before": true, |
| 358 | + "after": false |
| 359 | + } |
| 360 | + ], |
| 361 | + "no-class-assign": 2, |
| 362 | + "no-const-assign": 2, |
| 363 | + "no-dupe-class-members": 2, |
| 364 | + "no-this-before-super": 2, |
| 365 | + "no-var": 2, |
| 366 | + "object-shorthand": [ |
| 367 | + 2, |
| 368 | + "always" |
| 369 | + ], |
| 370 | + "prefer-arrow-callback": 2, |
| 371 | + "prefer-const": 0, |
| 372 | + "prefer-spread": 2, |
| 373 | + "prefer-reflect": 2, |
| 374 | + "prefer-template": 2, |
| 375 | + "require-yield": 2 |
| 376 | + }, |
| 377 | + "ecmaFeatures": { |
| 378 | + "jsx": true, |
| 379 | + "modules": true |
| 380 | + }, |
| 381 | + "plugins": [ |
| 382 | + "react" |
| 383 | + ], |
| 384 | + "parser": "babel-eslint", |
| 385 | + "env": { |
| 386 | + "browser": true |
| 387 | + // "mocha": true, |
| 388 | + // "node": true |
| 389 | + } |
| 390 | +} |
0 commit comments