1
1
module . exports = {
2
- " env" : {
3
- " browser" : true ,
4
- " es6" : true ,
5
- " node" : true
2
+ env : {
3
+ browser : true ,
4
+ es6 : true ,
5
+ node : true ,
6
6
} ,
7
- " extends" : "eslint:recommended" ,
8
- " parserOptions" : {
9
- " ecmaVersion" : 2018 ,
10
- " sourceType" : "module"
7
+ extends : [ "eslint:recommended" , "prettier" ] ,
8
+ parserOptions : {
9
+ ecmaVersion : 2022 ,
10
+ sourceType : "module" ,
11
11
} ,
12
- "rules" : {
12
+ plugins : [ "prettier" ] ,
13
+ rules : {
13
14
"no-console" : "off" ,
14
15
"accessor-pairs" : "error" ,
15
16
"array-bracket-newline" : "off" ,
16
- "array-bracket-spacing" : [
17
- "error" ,
18
- "never"
19
- ] ,
17
+ "array-bracket-spacing" : [ "error" , "never" ] ,
20
18
"array-callback-return" : "off" ,
21
19
"array-element-newline" : "off" ,
22
20
"arrow-body-style" : "error" ,
23
- "arrow-parens" : [
24
- "error" ,
25
- "as-needed"
26
- ] ,
21
+ "arrow-parens" : "off" ,
27
22
"arrow-spacing" : [
28
23
"error" ,
29
24
{
30
- " after" : true ,
31
- " before" : true
25
+ after : true ,
26
+ before : true ,
32
27
}
33
28
] ,
34
29
"block-scoped-var" : "error" ,
35
30
"block-spacing" : "error" ,
36
- "brace-style" : [
37
- "error" ,
38
- "1tbs"
39
- ] ,
31
+ "brace-style" : [ "error" , "1tbs" ] ,
40
32
"callback-return" : "error" ,
41
33
"camelcase" : "error" ,
42
34
"capitalized-comments" : "off" ,
43
35
"class-methods-use-this" : "off" ,
44
- "comma-dangle" : "error " ,
36
+ "comma-dangle" : "off " ,
45
37
"comma-spacing" : [
46
38
"error" ,
47
39
{
48
- " after" : true ,
49
- " before" : false
40
+ after : true ,
41
+ before : false ,
50
42
}
51
43
] ,
52
- "comma-style" : [
53
- "error" ,
54
- "last"
55
- ] ,
56
- "complexity" : "off" ,
57
- "computed-property-spacing" : [
58
- "error" ,
59
- "never"
60
- ] ,
44
+ "comma-style" : [ "error" , "last" ] ,
45
+ complexity : "off" ,
46
+ "computed-property-spacing" : [ "error" , "never" ] ,
61
47
"consistent-return" : "off" ,
62
48
"consistent-this" : "off" ,
63
- " curly" : "off" ,
49
+ curly : "off" ,
64
50
"default-case" : "error" ,
65
- "dot-location" : [
66
- "error" ,
67
- "property"
68
- ] ,
51
+ "dot-location" : [ "error" , "property" ] ,
69
52
"dot-notation" : "off" ,
70
53
"eol-last" : "error" ,
71
- " eqeqeq" : "error" ,
54
+ eqeqeq : "error" ,
72
55
"func-call-spacing" : "error" ,
73
56
"func-name-matching" : "error" ,
74
57
"func-names" : "off" ,
@@ -81,27 +64,21 @@ module.exports = {
81
64
"id-blacklist" : "error" ,
82
65
"id-length" : "off" ,
83
66
"id-match" : "error" ,
84
- "implicit-arrow-linebreak" : [
85
- "error" ,
86
- "beside"
87
- ] ,
88
- "indent" : "off" ,
67
+ "implicit-arrow-linebreak" : "off" ,
68
+ indent : "off" ,
89
69
"indent-legacy" : "off" ,
90
70
"init-declarations" : "off" ,
91
71
"jsx-quotes" : "error" ,
92
72
"key-spacing" : "error" ,
93
73
"keyword-spacing" : [
94
74
"error" ,
95
75
{
96
- " after" : true ,
97
- " before" : true
76
+ after : true ,
77
+ before : true ,
98
78
}
99
79
] ,
100
80
"line-comment-position" : "off" ,
101
- "linebreak-style" : [
102
- "error" ,
103
- "unix"
104
- ] ,
81
+ "linebreak-style" : [ "error" , "unix" ] ,
105
82
"lines-around-comment" : "off" ,
106
83
"lines-around-directive" : "error" ,
107
84
"lines-between-class-members" : "off" ,
@@ -157,7 +134,7 @@ module.exports = {
157
134
"no-mixed-operators" : [
158
135
"error" ,
159
136
{
160
- " allowSamePrecedence" : true
137
+ allowSamePrecedence : true ,
161
138
}
162
139
] ,
163
140
"no-mixed-requires" : "error" ,
@@ -220,17 +197,14 @@ module.exports = {
220
197
"no-warning-comments" : "off" ,
221
198
"no-whitespace-before-property" : "error" ,
222
199
"no-with" : "error" ,
223
- "nonblock-statement-body-position" : "error " ,
200
+ "nonblock-statement-body-position" : "off " ,
224
201
"object-curly-newline" : "error" ,
225
- "object-curly-spacing" : "error " ,
202
+ "object-curly-spacing" : "off " ,
226
203
"object-property-newline" : "error" ,
227
204
"object-shorthand" : "error" ,
228
205
"one-var" : "off" ,
229
206
"one-var-declaration-per-line" : "error" ,
230
- "operator-assignment" : [
231
- "error" ,
232
- "always"
233
- ] ,
207
+ "operator-assignment" : [ "error" , "always" ] ,
234
208
"operator-linebreak" : "error" ,
235
209
"padded-blocks" : "off" ,
236
210
"padding-line-between-statements" : "error" ,
@@ -244,61 +218,44 @@ module.exports = {
244
218
"prefer-rest-params" : "off" ,
245
219
"prefer-spread" : "error" ,
246
220
"prefer-template" : "error" ,
221
+ "prettier/prettier" : "error" ,
247
222
"quote-props" : "off" ,
248
- " quotes" : "off" ,
249
- " radix" : "error" ,
223
+ quotes : "off" ,
224
+ radix : "error" ,
250
225
"require-atomic-updates" : "error" ,
251
226
"require-await" : "error" ,
252
227
"require-jsdoc" : "off" ,
253
228
"require-unicode-regexp" : "off" ,
254
- "rest-spread-spacing" : [
255
- "error" ,
256
- "never"
257
- ] ,
258
- "semi" : [ "error" , "never" ] ,
229
+ "rest-spread-spacing" : [ "error" , "never" ] ,
230
+ semi : [ "error" , "never" ] ,
259
231
"semi-spacing" : [
260
232
"error" ,
261
233
{
262
- " after" : true ,
263
- " before" : false
234
+ after : true ,
235
+ before : false ,
264
236
}
265
237
] ,
266
- "semi-style" : [
267
- "error" ,
268
- "last"
269
- ] ,
238
+ "semi-style" : [ "error" , "last" ] ,
270
239
"sort-imports" : "error" ,
271
240
"sort-keys" : "off" ,
272
241
"sort-vars" : "off" ,
273
242
"space-before-blocks" : "error" ,
274
243
"space-before-function-paren" : "off" ,
275
- "space-in-parens" : [
276
- "error" ,
277
- "never"
278
- ] ,
244
+ "space-in-parens" : [ "error" , "never" ] ,
279
245
"space-infix-ops" : "error" ,
280
246
"space-unary-ops" : "error" ,
281
247
"spaced-comment" : "off" ,
282
- " strict" : "error" ,
248
+ strict : "error" ,
283
249
"switch-colon-spacing" : "error" ,
284
250
"symbol-description" : "error" ,
285
- "template-curly-spacing" : [
286
- "error" ,
287
- "never"
288
- ] ,
251
+ "template-curly-spacing" : [ "error" , "never" ] ,
289
252
"template-tag-spacing" : "error" ,
290
- "unicode-bom" : [
291
- "error" ,
292
- "never"
293
- ] ,
253
+ "unicode-bom" : [ "error" , "never" ] ,
294
254
"valid-jsdoc" : "off" ,
295
255
"vars-on-top" : "error" ,
296
256
"wrap-iife" : "error" ,
297
257
"wrap-regex" : "error" ,
298
258
"yield-star-spacing" : "error" ,
299
- "yoda" : [
300
- "error" ,
301
- "never"
302
- ]
259
+ yoda : [ "error" , "never" ] ,
303
260
}
304
- } ;
261
+ }
0 commit comments