|
5 | 5 | "browser": true, |
6 | 6 | "es6": true |
7 | 7 | }, |
8 | | - "extends": "eslint:recommended", |
9 | | - "plugins": ["compat"], |
10 | | - "parserOptions": { |
11 | | - "ecmaVersion": 8, |
12 | | - "sourceType": "module" |
13 | | - }, |
| 8 | + "extends": ["eslint:recommended", "plugin:compat/recommended"], |
14 | 9 | "rules": { |
15 | 10 | // Possible Errors |
16 | 11 | "no-await-in-loop": "error", |
17 | 12 | "no-extra-parens": "error", |
18 | 13 | "no-prototype-builtins": "error", |
19 | 14 | "no-template-curly-in-string": "error", |
20 | | - "compat/compat": "error", |
21 | 15 | "valid-jsdoc": "error", |
22 | 16 |
|
23 | 17 | // Best Practices |
|
85 | 79 | "no-unused-expressions": "error", |
86 | 80 | "no-useless-call": "error", |
87 | 81 | "no-useless-concat": "error", |
88 | | - "no-useless-return": "off", |
| 82 | + "no-useless-return": "error", |
89 | 83 | "no-void": "error", |
90 | 84 | "no-warning-comments": "off", |
91 | 85 | "no-with": "error", |
|
141 | 135 | "id-blacklist": "error", |
142 | 136 | "id-length": "off", |
143 | 137 | "id-match": "error", |
144 | | - "indent": "off", |
145 | | - "indent-legacy": ["error", 2, { "SwitchCase": 1 }], |
| 138 | + "indent": ["error", 2, { "SwitchCase": 1 }], |
146 | 139 | "jsx-quotes": "error", |
147 | 140 | "key-spacing": "off", |
148 | 141 | "keyword-spacing": "error", |
149 | | - "line-comment-position": "off", |
150 | 142 | "linebreak-style": ["error", "unix"], |
| 143 | + "line-comment-position": "off", |
151 | 144 | "lines-around-comment": "off", |
152 | 145 | "lines-around-directive": "error", |
153 | 146 | "max-depth": ["error", 10], |
|
159 | 152 | "max-statements-per-line": "error", |
160 | 153 | "multiline-ternary": "off", |
161 | 154 | "new-cap": ["error", { "capIsNewExceptionPattern": "$.*" }], |
162 | | - "new-parens": "error", |
163 | 155 | "newline-after-var": "off", |
164 | | - "newline-before-return": "off", |
165 | 156 | "newline-per-chained-call": ["error", { "ignoreChainWithDepth": 5 }], |
| 157 | + "new-parens": "error", |
166 | 158 | "no-array-constructor": "error", |
167 | 159 | "no-bitwise": "error", |
168 | 160 | "no-continue": "off", |
|
171 | 163 | "no-mixed-operators": "off", |
172 | 164 | "no-multi-assign": "error", |
173 | 165 | "no-multiple-empty-lines": "error", |
| 166 | + "nonblock-statement-body-position": "error", |
174 | 167 | "no-negated-condition": "off", |
175 | 168 | "no-nested-ternary": "error", |
176 | 169 | "no-new-object": "error", |
|
182 | 175 | "no-underscore-dangle": "off", |
183 | 176 | "no-unneeded-ternary": "error", |
184 | 177 | "no-whitespace-before-property": "error", |
185 | | - "nonblock-statement-body-position": "error", |
186 | 178 | "object-curly-newline": ["error", { "minProperties": 1 }], |
187 | 179 | "object-curly-spacing": ["error", "always"], |
188 | 180 | "object-property-newline": "error", |
189 | 181 | "one-var": ["error", "never"], |
190 | 182 | "one-var-declaration-per-line": "error", |
191 | 183 | "operator-assignment": "error", |
192 | | - "operator-linebreak": "off", |
193 | | - "padded-blocks": "off", |
| 184 | + "operator-linebreak": "error", |
| 185 | + "padded-blocks": ["error", "never"], |
| 186 | + "padding-line-between-statements": "off", |
194 | 187 | "quote-props": ["error", "as-needed"], |
195 | 188 | "quotes": ["error", "single"], |
196 | 189 | "require-jsdoc": "off", |
|
200 | 193 | "sort-vars": "error", |
201 | 194 | "space-before-blocks": "error", |
202 | 195 | "space-before-function-paren": ["error", { |
203 | | - "anonymous": "always", |
204 | | - "named": "never" |
| 196 | + "anonymous": "always", |
| 197 | + "named": "never" |
205 | 198 | }], |
206 | 199 | "space-in-parens": "error", |
207 | 200 | "space-infix-ops": "error", |
|
0 commit comments