|
1 | 1 | /*eslint-env node*/
|
2 | 2 | /*eslint no-console:0*/
|
3 |
| -"use strict"; |
| 3 | +'use strict'; |
4 | 4 |
|
5 | 5 | module.exports = {
|
6 |
| - extends: "eslint:recommended", |
7 |
| - rules: { |
8 |
| - "valid-jsdoc": ["warn", { requireReturn: false }], |
9 |
| - "accessor-pairs": "warn", |
10 |
| - "array-callback-return": "warn", |
11 |
| - "block-scoped-var": "warn", |
12 |
| - complexity: ["warn", { max: 25 }], |
13 |
| - "consistent-return": "warn", |
14 |
| - "default-case": "warn", |
15 |
| - "dot-notation": "warn", |
16 |
| - eqeqeq: ["warn", "allow-null"], |
17 |
| - "guard-for-in": "warn", |
18 |
| - "no-alert": "warn", |
19 |
| - "no-caller": "error", |
20 |
| - "no-div-regex": "warn", |
21 |
| - "no-else-return": "warn", |
22 |
| - "no-empty-function": "warn", |
23 |
| - "no-eval": "error", |
24 |
| - "no-extend-native": "warn", |
25 |
| - "no-extra-bind": "warn", |
26 |
| - "no-extra-label": "warn", |
27 |
| - "no-floating-decimal": "warn", |
28 |
| - "no-implicit-coercion": "warn", |
29 |
| - "no-implicit-globals": "warn", |
30 |
| - "no-implied-eval": "error", |
31 |
| - "no-iterator": "error", |
32 |
| - "no-labels": "warn", |
33 |
| - "no-lone-blocks": "warn", |
34 |
| - "no-loop-func": "error", |
35 |
| - "no-magic-numbers": ["warn", { ignore: [-1, 0, 1] }], |
36 |
| - "no-multi-str": "warn", |
37 |
| - "no-native-reassign": "error", |
38 |
| - "no-new": "warn", |
39 |
| - "no-new-func": "error", |
40 |
| - "no-new-wrappers": "warn", |
41 |
| - "no-octal-escape": "error", |
42 |
| - "no-proto": "warn", |
43 |
| - "no-return-assign": "error", |
44 |
| - "no-script-url": "warn", |
45 |
| - "no-self-compare": "error", |
46 |
| - "no-sequences": "warn", |
47 |
| - "no-throw-literal": "warn", |
48 |
| - "no-unmodified-loop-condition": "warn", |
49 |
| - "no-unused-expressions": "error", |
50 |
| - "no-unsafe-finally": "error", |
51 |
| - "no-useless-call": "warn", |
52 |
| - "no-useless-computed-key": "warn", |
53 |
| - "no-useless-concat": "warn", |
54 |
| - "no-warning-comments": [ |
55 |
| - "warn", |
56 |
| - { terms: ["todo", "bug"], location: "start" } |
57 |
| - ], |
58 |
| - "no-with": "error", |
59 |
| - radix: "warn", |
60 |
| - yoda: "warn", |
61 |
| - strict: ["warn", "safe"], |
62 |
| - "no-catch-shadow": "error", |
63 |
| - "no-restricted-globals": ["warn", "event"], |
64 |
| - "no-shadow": "warn", |
65 |
| - "no-shadow-restricted-names": "error", |
66 |
| - "no-undef": "error", |
67 |
| - "no-use-before-define": "error", |
68 |
| - "no-useless-constructor": "warn", |
69 |
| - "no-var": "warn", |
70 |
| - "object-shorthand": "warn", |
71 |
| - "prefer-arrow-callback": "warn", |
72 |
| - "prefer-const": "warn", |
73 |
| - "prefer-rest-params": "warn", |
74 |
| - "prefer-spread": "warn", |
75 |
| - "prefer-template": "warn", |
76 |
| - "require-yield": "warn", |
77 |
| - "no-duplicate-imports": "warn", |
78 |
| - "max-statements-per-line": ["warn", { max: 2 }], |
79 |
| - "no-useless-escape": "warn" |
80 |
| - }, |
81 |
| - env: { |
82 |
| - node: true, |
83 |
| - es6: true |
84 |
| - }, |
85 |
| - parserOptions: { |
86 |
| - ecmaVersion: 6, |
87 |
| - sourceType: "module" |
88 |
| - }, |
89 |
| - root: true |
| 6 | + extends: 'eslint:recommended', |
| 7 | + rules: { |
| 8 | + 'valid-jsdoc': ['warn', { requireReturn: false }], |
| 9 | + 'accessor-pairs': 'warn', |
| 10 | + 'array-callback-return': 'warn', |
| 11 | + 'block-scoped-var': 'warn', |
| 12 | + complexity: ['warn', { max: 25 }], |
| 13 | + 'consistent-return': 'warn', |
| 14 | + 'default-case': 'warn', |
| 15 | + 'dot-notation': 'warn', |
| 16 | + eqeqeq: ['warn', 'allow-null'], |
| 17 | + 'guard-for-in': 'warn', |
| 18 | + 'no-alert': 'warn', |
| 19 | + 'no-caller': 'error', |
| 20 | + 'no-div-regex': 'warn', |
| 21 | + 'no-else-return': 'warn', |
| 22 | + 'no-empty-function': 'warn', |
| 23 | + 'no-eval': 'error', |
| 24 | + 'no-extend-native': 'warn', |
| 25 | + 'no-extra-bind': 'warn', |
| 26 | + 'no-extra-label': 'warn', |
| 27 | + 'no-floating-decimal': 'warn', |
| 28 | + 'no-implicit-coercion': 'warn', |
| 29 | + 'no-implicit-globals': 'warn', |
| 30 | + 'no-implied-eval': 'error', |
| 31 | + 'no-iterator': 'error', |
| 32 | + 'no-labels': 'warn', |
| 33 | + 'no-lone-blocks': 'warn', |
| 34 | + 'no-loop-func': 'error', |
| 35 | + 'no-magic-numbers': ['warn', { ignore: [-1, 0, 1] }], |
| 36 | + 'no-multi-str': 'warn', |
| 37 | + 'no-native-reassign': 'error', |
| 38 | + 'no-new': 'warn', |
| 39 | + 'no-new-func': 'error', |
| 40 | + 'no-new-wrappers': 'warn', |
| 41 | + 'no-octal-escape': 'error', |
| 42 | + 'no-proto': 'warn', |
| 43 | + 'no-return-assign': 'error', |
| 44 | + 'no-script-url': 'warn', |
| 45 | + 'no-self-compare': 'error', |
| 46 | + 'no-sequences': 'warn', |
| 47 | + 'no-throw-literal': 'warn', |
| 48 | + 'no-unmodified-loop-condition': 'warn', |
| 49 | + 'no-unused-expressions': 'error', |
| 50 | + 'no-unsafe-finally': 'error', |
| 51 | + 'no-useless-call': 'warn', |
| 52 | + 'no-useless-computed-key': 'warn', |
| 53 | + 'no-useless-concat': 'warn', |
| 54 | + 'no-warning-comments': [ |
| 55 | + 'warn', |
| 56 | + { terms: ['todo', 'bug'], location: 'start' }, |
| 57 | + ], |
| 58 | + 'no-with': 'error', |
| 59 | + radix: 'warn', |
| 60 | + yoda: 'warn', |
| 61 | + strict: ['warn', 'safe'], |
| 62 | + 'no-catch-shadow': 'error', |
| 63 | + 'no-restricted-globals': ['warn', 'event'], |
| 64 | + 'no-shadow': 'warn', |
| 65 | + 'no-shadow-restricted-names': 'error', |
| 66 | + 'no-undef': 'error', |
| 67 | + 'no-use-before-define': 'error', |
| 68 | + 'no-useless-constructor': 'warn', |
| 69 | + 'no-var': 'warn', |
| 70 | + 'object-shorthand': 'warn', |
| 71 | + 'prefer-arrow-callback': 'warn', |
| 72 | + 'prefer-const': 'warn', |
| 73 | + 'prefer-rest-params': 'warn', |
| 74 | + 'prefer-spread': 'warn', |
| 75 | + 'prefer-template': 'warn', |
| 76 | + 'require-yield': 'warn', |
| 77 | + 'no-duplicate-imports': 'warn', |
| 78 | + 'max-statements-per-line': ['warn', { max: 2 }], |
| 79 | + 'no-useless-escape': 'warn', |
| 80 | + }, |
| 81 | + env: { |
| 82 | + node: true, |
| 83 | + es6: true, |
| 84 | + }, |
| 85 | + parserOptions: { |
| 86 | + ecmaVersion: 6, |
| 87 | + sourceType: 'module', |
| 88 | + }, |
| 89 | + root: true, |
90 | 90 | };
|
0 commit comments