|
1 | 1 | { |
| 2 | + "env": { |
| 3 | + "node": true, |
| 4 | + "builtin": true, |
| 5 | + "es6": true |
| 6 | + }, |
| 7 | + "parserOptions": { |
| 8 | + "ecmaVersion": 6, |
| 9 | + "sourceType": "module" |
| 10 | + }, |
| 11 | + "globals": {}, |
| 12 | + "extends": ["prettier"], |
| 13 | + "plugins": ["prettier"], |
2 | 14 | "rules": { |
3 | | - "no-var": "error", |
4 | | - "prefer-const": "error", |
5 | | - "accessor-pairs": 2, |
6 | | - "arrow-spacing": [ |
7 | | - 2, |
8 | | - { |
9 | | - "before": true, |
10 | | - "after": true |
11 | | - } |
12 | | - ], |
13 | | - "block-spacing": [ |
14 | | - 2, |
15 | | - "always" |
16 | | - ], |
17 | | - "brace-style": [ |
18 | | - 2, |
19 | | - "1tbs", |
20 | | - { |
21 | | - "allowSingleLine": true |
22 | | - } |
23 | | - ], |
24 | | - "camelcase": [ |
25 | | - 2, |
26 | | - { |
27 | | - "properties": "never" |
28 | | - } |
29 | | - ], |
30 | | - "comma-dangle": [ |
31 | | - 2, |
32 | | - "never" |
33 | | - ], |
34 | | - "comma-spacing": [ |
35 | | - 2, |
36 | | - { |
37 | | - "before": false, |
38 | | - "after": true |
39 | | - } |
40 | | - ], |
41 | | - "comma-style": [ |
42 | | - 2, |
43 | | - "last" |
44 | | - ], |
45 | | - "constructor-super": 2, |
46 | | - "curly": [ |
47 | | - 2, |
48 | | - "multi-line" |
49 | | - ], |
50 | | - "dot-location": [ |
51 | | - 2, |
52 | | - "property" |
53 | | - ], |
54 | | - "eol-last": 2, |
55 | | - "eqeqeq": [ |
56 | | - 2, |
57 | | - "allow-null" |
58 | | - ], |
59 | | - "func-call-spacing": [ |
60 | | - 2, |
61 | | - "never" |
62 | | - ], |
63 | | - "handle-callback-err": [ |
64 | | - 2, |
65 | | - "^(err|error)$" |
66 | | - ], |
67 | | - "key-spacing": [ |
68 | | - 2, |
69 | | - { |
70 | | - "beforeColon": false, |
71 | | - "afterColon": true |
72 | | - } |
73 | | - ], |
74 | | - "keyword-spacing": [ |
75 | | - 2, |
76 | | - { |
77 | | - "before": true, |
78 | | - "after": true |
79 | | - } |
80 | | - ], |
81 | | - "new-cap": [ |
82 | | - 2, |
83 | | - { |
84 | | - "newIsCap": true, |
85 | | - "capIsNew": false |
86 | | - } |
87 | | - ], |
88 | | - "new-parens": 2, |
89 | | - "no-array-constructor": 2, |
| 15 | + "prettier/prettier": "error", |
| 16 | + "block-scoped-var": 0, |
| 17 | + "camelcase": 0, |
| 18 | + "consistent-return": 2, |
| 19 | + "curly": [2, "all"], |
| 20 | + "dot-notation": [1, { "allowKeywords": true }], |
| 21 | + "eqeqeq": [2, "allow-null"], |
| 22 | + "global-strict": [0, "never"], |
| 23 | + "guard-for-in": 2, |
| 24 | + "key-spacing": 0, |
| 25 | + "new-cap": 0, |
| 26 | + "no-alert": 2, |
| 27 | + "no-bitwise": 2, |
90 | 28 | "no-caller": 2, |
91 | | - "no-class-assign": 2, |
92 | | - "no-cond-assign": 2, |
93 | | - "no-const-assign": 2, |
94 | | - "no-constant-condition": [ |
95 | | - 2, |
96 | | - { |
97 | | - "checkLoops": false |
98 | | - } |
99 | | - ], |
100 | | - "no-control-regex": 2, |
| 29 | + "no-cond-assign": [2, "except-parens"], |
101 | 30 | "no-debugger": 2, |
102 | | - "no-delete-var": 2, |
103 | 31 | "no-dupe-args": 2, |
104 | | - "no-dupe-class-members": 2, |
105 | 32 | "no-dupe-keys": 2, |
106 | | - "no-duplicate-case": 2, |
107 | | - "no-duplicate-imports": 2, |
108 | | - "no-empty-character-class": 2, |
109 | | - "no-empty-pattern": 2, |
| 33 | + "no-empty": 2, |
110 | 34 | "no-eval": 2, |
111 | | - "no-ex-assign": 2, |
112 | 35 | "no-extend-native": 2, |
113 | 36 | "no-extra-bind": 2, |
114 | | - "no-extra-boolean-cast": 2, |
115 | | - "no-extra-parens": [ |
116 | | - 2, |
117 | | - "functions" |
118 | | - ], |
119 | | - "no-fallthrough": 2, |
120 | | - "no-floating-decimal": 2, |
| 37 | + "no-extra-parens": 0, |
121 | 38 | "no-func-assign": 2, |
122 | | - "no-global-assign": 2, |
123 | 39 | "no-implied-eval": 2, |
124 | | - "no-inner-declarations": [ |
125 | | - 2, |
126 | | - "functions" |
127 | | - ], |
128 | 40 | "no-invalid-regexp": 2, |
129 | | - "no-irregular-whitespace": 2, |
| 41 | + "no-irregular-whitespace": 1, |
130 | 42 | "no-iterator": 2, |
131 | | - "no-label-var": 2, |
132 | | - "no-labels": [ |
133 | | - 2, |
134 | | - { |
135 | | - "allowLoop": false, |
136 | | - "allowSwitch": false |
137 | | - } |
138 | | - ], |
139 | | - "no-lone-blocks": 2, |
140 | | - "no-mixed-spaces-and-tabs": 2, |
141 | | - "no-multi-spaces": 2, |
| 43 | + "no-loop-func": 2, |
| 44 | + "no-mixed-requires": 0, |
142 | 45 | "no-multi-str": 2, |
143 | | - "no-multiple-empty-lines": [ |
144 | | - 2, |
145 | | - { |
146 | | - "max": 1 |
147 | | - } |
148 | | - ], |
149 | 46 | "no-native-reassign": 2, |
150 | | - "no-negated-in-lhs": 2, |
151 | 47 | "no-new": 2, |
152 | | - "no-new-func": 2, |
153 | | - "no-new-object": 2, |
154 | | - "no-new-require": 2, |
155 | | - "no-new-symbol": 2, |
156 | | - "no-new-wrappers": 2, |
157 | | - "no-obj-calls": 2, |
158 | | - "no-octal": 2, |
159 | | - "no-octal-escape": 2, |
160 | | - "no-path-concat": 2, |
| 48 | + "no-param-reassign": 1, |
161 | 49 | "no-proto": 2, |
162 | | - "no-redeclare": 2, |
163 | | - "no-regex-spaces": 2, |
164 | | - "no-return-assign": [ |
165 | | - 2, |
166 | | - "except-parens" |
167 | | - ], |
| 50 | + "no-redeclare": 0, |
| 51 | + "no-script-url": 2, |
168 | 52 | "no-self-assign": 2, |
169 | 53 | "no-self-compare": 2, |
170 | 54 | "no-sequences": 2, |
171 | | - "no-shadow-restricted-names": 2, |
172 | | - "no-sparse-arrays": 2, |
173 | | - "no-template-curly-in-string": 2, |
174 | | - "no-this-before-super": 2, |
175 | | - "no-throw-literal": 2, |
| 55 | + "no-shadow": 2, |
176 | 56 | "no-undef": 2, |
177 | | - "no-undef-init": 2, |
178 | | - "no-unexpected-multiline": 2, |
179 | | - "no-unmodified-loop-condition": 2, |
180 | | - "no-unneeded-ternary": [ |
181 | | - 2, |
182 | | - { |
183 | | - "defaultAssignment": false |
184 | | - } |
185 | | - ], |
186 | | - "no-unreachable": 2, |
187 | | - "no-unsafe-finally": 2, |
188 | | - "no-unsafe-negation": 2, |
189 | | - "no-unused-vars": [ |
190 | | - 2, |
191 | | - { |
192 | | - "vars": "all", |
193 | | - "args": "none" |
194 | | - } |
195 | | - ], |
| 57 | + "no-underscore-dangle": 0, |
| 58 | + "no-unreachable": 1, |
| 59 | + "no-unused-vars": 1, |
| 60 | + "no-use-before-define": 1, |
196 | 61 | "no-useless-call": 2, |
197 | | - "no-useless-computed-key": 2, |
198 | | - "no-useless-constructor": 2, |
199 | | - "no-useless-escape": 2, |
200 | | - "no-useless-rename": 2, |
201 | | - "no-whitespace-before-property": 2, |
| 62 | + "no-useless-concat": 2, |
| 63 | + "no-var": 2, |
202 | 64 | "no-with": 2, |
203 | | - "object-property-newline": [ |
204 | | - 2, |
205 | | - { |
206 | | - "allowMultiplePropertiesPerLine": true |
207 | | - } |
208 | | - ], |
209 | | - "one-var": [ |
210 | | - 2, |
211 | | - { |
212 | | - "initialized": "never" |
213 | | - } |
214 | | - ], |
215 | | - "operator-linebreak": [ |
216 | | - 2, |
217 | | - "after", |
218 | | - { |
219 | | - "overrides": { |
220 | | - "?": "before", |
221 | | - ":": "before" |
222 | | - } |
223 | | - } |
224 | | - ], |
225 | | - "padded-blocks": [ |
226 | | - 2, |
227 | | - "never" |
228 | | - ], |
229 | | - "quotes": [ |
230 | | - 2, |
231 | | - "single", |
232 | | - { |
233 | | - "avoidEscape": true, |
234 | | - "allowTemplateLiterals": true |
235 | | - } |
236 | | - ], |
237 | | - "rest-spread-spacing": [ |
238 | | - 2, |
239 | | - "never" |
240 | | - ], |
241 | | - "semi-spacing": [ |
242 | | - 2, |
243 | | - { |
244 | | - "before": false, |
245 | | - "after": true |
246 | | - } |
247 | | - ], |
248 | | - "space-before-blocks": [ |
249 | | - 2, |
250 | | - "always" |
251 | | - ], |
252 | | - "space-in-parens": [ |
253 | | - 2, |
254 | | - "never" |
255 | | - ], |
256 | | - "space-infix-ops": 2, |
257 | | - "space-unary-ops": [ |
258 | | - 2, |
259 | | - { |
260 | | - "words": true, |
261 | | - "nonwords": false |
262 | | - } |
263 | | - ], |
264 | | - "spaced-comment": [ |
265 | | - 2, |
266 | | - "always", |
| 65 | + "quotes": [0, "single"], |
| 66 | + "radix": 2, |
| 67 | + "strict": 0, |
| 68 | + "valid-typeof": 2, |
| 69 | + "vars-on-top": 0, |
| 70 | + "prefer-const": [ |
| 71 | + "error", |
267 | 72 | { |
268 | | - "line": { |
269 | | - "markers": [ |
270 | | - "*package", |
271 | | - "!", |
272 | | - "," |
273 | | - ] |
274 | | - }, |
275 | | - "block": { |
276 | | - "balanced": true, |
277 | | - "markers": [ |
278 | | - "*package", |
279 | | - "!", |
280 | | - "," |
281 | | - ], |
282 | | - "exceptions": [ |
283 | | - "*" |
284 | | - ] |
285 | | - } |
| 73 | + "destructuring": "any", |
| 74 | + "ignoreReadBeforeAssign": false |
286 | 75 | } |
287 | | - ], |
288 | | - "template-curly-spacing": [ |
289 | | - 2, |
290 | | - "never" |
291 | | - ], |
292 | | - "unicode-bom": [ |
293 | | - 2, |
294 | | - "never" |
295 | | - ], |
296 | | - "use-isnan": 2, |
297 | | - "valid-typeof": 2, |
298 | | - "wrap-iife": [ |
299 | | - 2, |
300 | | - "any" |
301 | | - ], |
302 | | - "yield-star-spacing": [ |
303 | | - 2, |
304 | | - "both" |
305 | | - ], |
306 | | - "yoda": [ |
307 | | - 2, |
308 | | - "never" |
309 | 76 | ] |
310 | | - }, |
311 | | - "env": { |
312 | | - "es6": true, |
313 | | - "node": true |
314 | | - }, |
315 | | - "parserOptions": { |
316 | | - "ecmaVersion": 7 |
317 | | - }, |
318 | | - "extends": "eslint:recommended" |
| 77 | + } |
319 | 78 | } |
0 commit comments