|
1 | 1 | {
|
2 |
| - "extends": [ |
3 |
| - "eslint:recommended" |
4 |
| - ], |
| 2 | + "root": true, |
| 3 | + "extends": "eslint:recommended", |
5 | 4 |
|
6 | 5 | "env": {
|
7 | 6 | "browser": false,
|
8 | 7 | "es6": true,
|
9 |
| - "node": true, |
10 |
| - "mocha": true |
| 8 | + "mocha": true, |
| 9 | + "node": true |
11 | 10 | },
|
12 | 11 |
|
13 | 12 | "parserOptions":{
|
|
27 | 26 |
|
28 | 27 | "rules": {
|
29 | 28 | "accessor-pairs": 2,
|
30 |
| - "arrow-spacing": [2, { "before": true, "after": true }], |
31 |
| - "block-spacing": [2, "always"], |
32 |
| - "brace-style": [2, "1tbs", { "allowSingleLine": true }], |
33 |
| - "comma-dangle": [2, "never"], |
34 |
| - "comma-spacing": [2, { "before": false, "after": true }], |
35 |
| - "comma-style": [2, "last"], |
| 29 | + "array-bracket-newline": [1, "consistent"], |
| 30 | + "array-bracket-spacing": [1, "never"], |
| 31 | + "array-callback-return": 1, |
| 32 | + "array-element-newline": [1, "consistent"], |
| 33 | + "arrow-body-style": 0, |
| 34 | + "arrow-parens": [1, "as-needed"], |
| 35 | + "arrow-spacing": [1, { "before": true, "after": true }], |
| 36 | + "block-scoped-var": 1, |
| 37 | + "block-spacing": [1, "always"], |
| 38 | + "brace-style": [1, "1tbs", { "allowSingleLine": true }], |
| 39 | + "callback-return": 0, |
| 40 | + "camelcase": [0, { "allow": [] }], |
| 41 | + "capitalized-comments": 0, |
| 42 | + "class-methods-use-this": 0, |
| 43 | + "comma-dangle": [1, "never"], |
| 44 | + "comma-spacing": [1, { "before": false, "after": true }], |
| 45 | + "comma-style": [1, "last"], |
| 46 | + "computed-property-spacing": 1, |
| 47 | + "consistent-return": 0, |
| 48 | + "consistent-this": 1, |
36 | 49 | "constructor-super": 2,
|
37 |
| - "curly": [2, "multi-line"], |
38 |
| - "dot-location": [2, "property"], |
39 |
| - "eol-last": 2, |
40 |
| - "eqeqeq": [2, "allow-null"], |
41 |
| - "generator-star-spacing": [2, { "before": true, "after": true }], |
42 |
| - "handle-callback-err": [2, "^(err|error)$" ], |
43 |
| - "indent": [2, 2, { "SwitchCase": 1 }], |
44 |
| - "key-spacing": [2, { "beforeColon": false, "afterColon": true }], |
45 |
| - "keyword-spacing": [2, { "before": true, "after": true }], |
46 |
| - "new-cap": [2, { "newIsCap": true, "capIsNew": false }], |
| 50 | + "curly": [1, "multi-line", "consistent"], |
| 51 | + "default-case": 1, |
| 52 | + "dot-location": [1, "property"], |
| 53 | + "dot-notation": 1, |
| 54 | + "eol-last": 1, |
| 55 | + "eqeqeq": [1, "allow-null"], |
| 56 | + "for-direction": 1, |
| 57 | + "func-call-spacing": 2, |
| 58 | + "generator-star-spacing": [1, { "before": true, "after": true }], |
| 59 | + "handle-callback-err": [2, "^(err|error)$"], |
| 60 | + "indent": [1, 2, { "SwitchCase": 1 }], |
| 61 | + "key-spacing": [1, { "beforeColon": false, "afterColon": true }], |
| 62 | + "keyword-spacing": [1, { "before": true, "after": true }], |
| 63 | + "linebreak-style": [1, "unix"], |
| 64 | + "new-cap": [1, { "newIsCap": true, "capIsNew": false }], |
47 | 65 | "new-parens": 2,
|
48 |
| - "no-array-constructor": 2, |
| 66 | + "no-alert": 1, |
| 67 | + "no-array-constructor": 1, |
| 68 | + "no-async-promise-executor": 1, |
49 | 69 | "no-caller": 2,
|
| 70 | + "no-case-declarations": 1, |
50 | 71 | "no-class-assign": 2,
|
51 | 72 | "no-cond-assign": 2,
|
52 | 73 | "no-const-assign": 2,
|
| 74 | + "no-constant-condition": [1, { "checkLoops": false }], |
53 | 75 | "no-control-regex": 2,
|
54 | 76 | "no-debugger": 2,
|
55 | 77 | "no-delete-var": 2,
|
56 | 78 | "no-dupe-args": 2,
|
57 | 79 | "no-dupe-class-members": 2,
|
58 | 80 | "no-dupe-keys": 2,
|
59 | 81 | "no-duplicate-case": 2,
|
| 82 | + "no-duplicate-imports": 0, |
| 83 | + "no-else-return": 0, |
60 | 84 | "no-empty-character-class": 2,
|
61 |
| - "no-eval": 2, |
| 85 | + "no-empty-function": 0, |
| 86 | + "no-empty-pattern": 0, |
| 87 | + "no-empty": [1, { "allowEmptyCatch": true }], |
| 88 | + "no-eval": 0, |
62 | 89 | "no-ex-assign": 2,
|
63 | 90 | "no-extend-native": 2,
|
64 |
| - "no-extra-bind": 2, |
65 |
| - "no-extra-boolean-cast": 2, |
66 |
| - "no-extra-parens": [2, "functions"], |
| 91 | + "no-extra-bind": 1, |
| 92 | + "no-extra-boolean-cast": 1, |
| 93 | + "no-extra-label": 1, |
| 94 | + "no-extra-parens": [1, "all", |
| 95 | + { |
| 96 | + "conditionalAssign": false, |
| 97 | + "returnAssign": false, |
| 98 | + "nestedBinaryExpressions": false, |
| 99 | + "ignoreJSX": "multi-line", |
| 100 | + "enforceForArrowConditionals": false |
| 101 | + } |
| 102 | + ], |
| 103 | + "no-extra-semi": 1, |
67 | 104 | "no-fallthrough": 2,
|
68 | 105 | "no-floating-decimal": 2,
|
69 | 106 | "no-func-assign": 2,
|
| 107 | + "no-global-assign": 2, |
| 108 | + "no-implicit-coercion": 2, |
| 109 | + "no-implicit-globals": 1, |
70 | 110 | "no-implied-eval": 2,
|
71 |
| - "no-inner-declarations": [2, "functions"], |
| 111 | + "no-inner-declarations": [1, "functions"], |
72 | 112 | "no-invalid-regexp": 2,
|
| 113 | + "no-invalid-this": 1, |
73 | 114 | "no-irregular-whitespace": 2,
|
74 | 115 | "no-iterator": 2,
|
75 | 116 | "no-label-var": 2,
|
76 | 117 | "no-labels": 2,
|
77 | 118 | "no-lone-blocks": 2,
|
| 119 | + "no-lonely-if": 2, |
| 120 | + "no-loop-func": 1, |
| 121 | + "no-mixed-requires": 1, |
78 | 122 | "no-mixed-spaces-and-tabs": 2,
|
79 |
| - "no-multi-spaces": 2, |
| 123 | + "no-multi-assign": 0, |
| 124 | + "no-multi-spaces": 1, |
80 | 125 | "no-multi-str": 2,
|
81 |
| - "no-multiple-empty-lines": [2, { "max": 1 }], |
82 |
| - "no-native-reassign": 0, |
| 126 | + "no-multiple-empty-lines": [1, { "max": 1 }], |
| 127 | + "no-native-reassign": 2, |
| 128 | + "no-negated-condition": 0, |
83 | 129 | "no-negated-in-lhs": 2,
|
84 |
| - "no-new": 2, |
85 | 130 | "no-new-func": 2,
|
86 | 131 | "no-new-object": 2,
|
87 | 132 | "no-new-require": 2,
|
| 133 | + "no-new-symbol": 1, |
88 | 134 | "no-new-wrappers": 2,
|
| 135 | + "no-new": 1, |
89 | 136 | "no-obj-calls": 2,
|
90 |
| - "no-octal": 2, |
91 | 137 | "no-octal-escape": 2,
|
92 |
| - "no-proto": 0, |
| 138 | + "no-octal": 2, |
| 139 | + "no-path-concat": 1, |
| 140 | + "no-proto": 2, |
| 141 | + "no-prototype-builtins": 0, |
93 | 142 | "no-redeclare": 2,
|
94 | 143 | "no-regex-spaces": 2,
|
95 |
| - "no-return-assign": 2, |
96 |
| - "no-self-compare": 2, |
| 144 | + "no-restricted-globals": 2, |
| 145 | + "no-return-assign": 1, |
| 146 | + "no-return-await": 2, |
| 147 | + "no-script-url": 1, |
| 148 | + "no-self-assign": 1, |
| 149 | + "no-self-compare": 1, |
97 | 150 | "no-sequences": 2,
|
98 | 151 | "no-shadow-restricted-names": 2,
|
| 152 | + "no-shadow": 0, |
99 | 153 | "no-spaced-func": 2,
|
100 | 154 | "no-sparse-arrays": 2,
|
| 155 | + "no-template-curly-in-string": 0, |
101 | 156 | "no-this-before-super": 2,
|
102 | 157 | "no-throw-literal": 2,
|
103 |
| - "no-trailing-spaces": 0, |
104 |
| - "no-undef": 2, |
| 158 | + "no-trailing-spaces": 1, |
105 | 159 | "no-undef-init": 2,
|
| 160 | + "no-undef": 2, |
106 | 161 | "no-unexpected-multiline": 2,
|
107 |
| - "no-unneeded-ternary": [2, { "defaultAssignment": false }], |
| 162 | + "no-unneeded-ternary": [1, { "defaultAssignment": false }], |
| 163 | + "no-unreachable-loop": 1, |
108 | 164 | "no-unreachable": 2,
|
109 |
| - "no-unused-vars": [2, { "vars": "all", "args": "none" }], |
110 |
| - "no-useless-call": 0, |
| 165 | + "no-unsafe-assignment": 0, |
| 166 | + "no-unsafe-call": 0, |
| 167 | + "no-unsafe-finally": 2, |
| 168 | + "no-unsafe-member-access": 0, |
| 169 | + "no-unsafe-negation": 2, |
| 170 | + "no-unsafe-optional-chaining": 0, |
| 171 | + "no-unsafe-return": 0, |
| 172 | + "no-unused-expressions": 2, |
| 173 | + "no-unused-vars": [1, { "vars": "all", "args": "after-used" }], |
| 174 | + "no-use-before-define": 0, |
| 175 | + "no-useless-call": 2, |
| 176 | + "no-useless-catch": 0, |
| 177 | + "no-useless-escape": 0, |
| 178 | + "no-useless-rename": 1, |
| 179 | + "no-useless-return": 1, |
| 180 | + "no-var": 1, |
| 181 | + "no-void": 1, |
| 182 | + "no-warning-comments": 0, |
111 | 183 | "no-with": 2,
|
112 |
| - "one-var": [0, { "initialized": "never" }], |
| 184 | + "object-curly-spacing": [1, "always", { "objectsInObjects": true }], |
| 185 | + "object-shorthand": 1, |
| 186 | + "one-var": [1, { "initialized": "never" }], |
113 | 187 | "operator-linebreak": [0, "after", { "overrides": { "?": "before", ":": "before" } }],
|
114 |
| - "padded-blocks": [0, "never"], |
115 |
| - "quotes": [2, "single", "avoid-escape"], |
| 188 | + "padded-blocks": [1, { "switches": "never" }], |
| 189 | + "prefer-const": [1, { "destructuring": "all", "ignoreReadBeforeAssign": false }], |
| 190 | + "prefer-promise-reject-errors": 1, |
| 191 | + "quotes": [1, "single", "avoid-escape"], |
116 | 192 | "radix": 2,
|
117 |
| - "semi": [2, "always"], |
118 |
| - "semi-spacing": [2, { "before": false, "after": true }], |
119 |
| - "space-before-blocks": [2, "always"], |
120 |
| - "space-before-function-paren": [2, "never"], |
121 |
| - "space-in-parens": [2, "never"], |
122 |
| - "space-infix-ops": 2, |
123 |
| - "space-unary-ops": [2, { "words": true, "nonwords": false }], |
| 193 | + "rest-spread-spacing": 1, |
| 194 | + "semi-spacing": [1, { "before": false, "after": true }], |
| 195 | + "semi-style": 1, |
| 196 | + "semi": [1, "always"], |
| 197 | + "space-before-blocks": [1, "always"], |
| 198 | + "space-before-function-paren": [1, { "anonymous": "never", "named": "never", "asyncArrow": "always" }], |
| 199 | + "space-in-parens": [1, "never"], |
| 200 | + "space-infix-ops": 1, |
| 201 | + "space-unary-ops": [1, { "words": true, "nonwords": false }], |
124 | 202 | "spaced-comment": [0, "always", { "markers": ["global", "globals", "eslint", "eslint-disable", "*package", "!", ","] }],
|
| 203 | + "strict": 2, |
| 204 | + "switch-colon-spacing": 1, |
| 205 | + "symbol-description": 1, |
| 206 | + "template-curly-spacing": [2, "never"], |
| 207 | + "template-tag-spacing": [2, "never"], |
| 208 | + "unicode-bom": 1, |
125 | 209 | "use-isnan": 2,
|
| 210 | + "valid-jsdoc": 1, |
126 | 211 | "valid-typeof": 2,
|
127 |
| - "wrap-iife": [2, "any"], |
128 |
| - "yoda": [2, "never"] |
| 212 | + "wrap-iife": [1, "any"], |
| 213 | + "yoda": [1, "never"] |
129 | 214 | }
|
130 | 215 | }
|
0 commit comments