@@ -10,6 +10,7 @@ parserOptions:
10
10
11
11
plugins :
12
12
- " @eslint-community/eslint-plugin-eslint-comments"
13
+ - " @stylistic/eslint-plugin-js"
13
14
- eslint-plugin-array-func
14
15
- eslint-plugin-i
15
16
- eslint-plugin-jquery
@@ -114,56 +115,105 @@ rules:
114
115
" @eslint-community/eslint-comments/no-unused-enable " : [2]
115
116
" @eslint-community/eslint-comments/no-use " : [0]
116
117
" @eslint-community/eslint-comments/require-description " : [0]
118
+ " @stylistic/js/array-bracket-newline " : [0]
119
+ " @stylistic/js/array-bracket-spacing " : [2, never]
120
+ " @stylistic/js/array-element-newline " : [0]
121
+ " @stylistic/js/arrow-parens " : [2, always]
122
+ " @stylistic/js/arrow-spacing " : [2, {before: true, after: true}]
123
+ " @stylistic/js/block-spacing " : [0]
124
+ " @stylistic/js/brace-style " : [2, 1tbs, {allowSingleLine: true}]
125
+ " @stylistic/js/comma-dangle " : [2, only-multiline]
126
+ " @stylistic/js/comma-spacing " : [2, {before: false, after: true}]
127
+ " @stylistic/js/comma-style " : [2, last]
128
+ " @stylistic/js/computed-property-spacing " : [2, never]
129
+ " @stylistic/js/dot-location " : [2, property]
130
+ " @stylistic/js/eol-last " : [2]
131
+ " @stylistic/js/func-call-spacing " : [2, never]
132
+ " @stylistic/js/function-call-argument-newline " : [0]
133
+ " @stylistic/js/function-paren-newline " : [0]
134
+ " @stylistic/js/generator-star-spacing " : [0]
135
+ " @stylistic/js/implicit-arrow-linebreak " : [0]
136
+ " @stylistic/js/indent " : [2, 2, {ignoreComments: true, SwitchCase: 1}]
137
+ " @stylistic/js/key-spacing " : [2]
138
+ " @stylistic/js/keyword-spacing " : [2]
139
+ " @stylistic/js/linebreak-style " : [2, unix]
140
+ " @stylistic/js/lines-around-comment " : [0]
141
+ " @stylistic/js/lines-between-class-members " : [0]
142
+ " @stylistic/js/max-len " : [0]
143
+ " @stylistic/js/max-statements-per-line " : [0]
144
+ " @stylistic/js/multiline-ternary " : [0]
145
+ " @stylistic/js/new-parens " : [2]
146
+ " @stylistic/js/newline-per-chained-call " : [0]
147
+ " @stylistic/js/no-confusing-arrow " : [0]
148
+ " @stylistic/js/no-extra-parens " : [0]
149
+ " @stylistic/js/no-extra-semi " : [2]
150
+ " @stylistic/js/no-floating-decimal " : [0]
151
+ " @stylistic/js/no-mixed-operators " : [0]
152
+ " @stylistic/js/no-mixed-spaces-and-tabs " : [2]
153
+ " @stylistic/js/no-multi-spaces " : [2, {ignoreEOLComments: true, exceptions: {Property: true}}]
154
+ " @stylistic/js/no-multiple-empty-lines " : [2, {max: 1, maxEOF: 0, maxBOF: 0}]
155
+ " @stylistic/js/no-tabs " : [2]
156
+ " @stylistic/js/no-trailing-spaces " : [2]
157
+ " @stylistic/js/no-whitespace-before-property " : [2]
158
+ " @stylistic/js/nonblock-statement-body-position " : [2]
159
+ " @stylistic/js/object-curly-newline " : [0]
160
+ " @stylistic/js/object-curly-spacing " : [2, never]
161
+ " @stylistic/js/object-property-newline " : [0]
162
+ " @stylistic/js/one-var-declaration-per-line " : [0]
163
+ " @stylistic/js/operator-linebreak " : [2, after]
164
+ " @stylistic/js/padded-blocks " : [2, never]
165
+ " @stylistic/js/padding-line-between-statements " : [0]
166
+ " @stylistic/js/quote-props " : [0]
167
+ " @stylistic/js/quotes " : [2, single, {avoidEscape: true, allowTemplateLiterals: true}]
168
+ " @stylistic/js/rest-spread-spacing " : [2, never]
169
+ " @stylistic/js/semi " : [2, always, {omitLastInOneLineBlock: true}]
170
+ " @stylistic/js/semi-spacing " : [2, {before: false, after: true}]
171
+ " @stylistic/js/semi-style " : [2, last]
172
+ " @stylistic/js/space-before-blocks " : [2, always]
173
+ " @stylistic/js/space-before-function-paren " : [0]
174
+ " @stylistic/js/space-in-parens " : [2, never]
175
+ " @stylistic/js/space-infix-ops " : [2]
176
+ " @stylistic/js/space-unary-ops " : [2]
177
+ " @stylistic/js/spaced-comment " : [2, always]
178
+ " @stylistic/js/switch-colon-spacing " : [2]
179
+ " @stylistic/js/template-curly-spacing " : [2, never]
180
+ " @stylistic/js/template-tag-spacing " : [2, never]
181
+ " @stylistic/js/wrap-iife " : [2, inside]
182
+ " @stylistic/js/wrap-regex " : [0]
183
+ " @stylistic/js/yield-star-spacing " : [2, after]
117
184
accessor-pairs : [2]
118
- array-bracket-newline : [0]
119
- array-bracket-spacing : [2, never]
120
185
array-callback-return : [2, {checkForEach: true}]
121
- array-element-newline : [0]
122
186
array-func/avoid-reverse : [2]
123
187
array-func/from-map : [2]
124
188
array-func/no-unnecessary-this-arg : [2]
125
189
array-func/prefer-array-from : [2]
126
190
array-func/prefer-flat-map : [0] # handled by unicorn/prefer-array-flat-map
127
191
array-func/prefer-flat : [0] # handled by unicorn/prefer-array-flat
128
192
arrow-body-style : [0]
129
- arrow-parens : [2, always]
130
- arrow-spacing : [2, {before: true, after: true}]
131
193
block-scoped-var : [2]
132
- brace-style : [2, 1tbs, {allowSingleLine: true}]
133
194
camelcase : [0]
134
195
capitalized-comments : [0]
135
196
class-methods-use-this : [0]
136
- comma-dangle : [2, only-multiline]
137
- comma-spacing : [2, {before: false, after: true}]
138
- comma-style : [2, last]
139
197
complexity : [0]
140
- computed-property-spacing : [2, never]
141
198
consistent-return : [0]
142
199
consistent-this : [0]
143
200
constructor-super : [2]
144
201
curly : [0]
145
202
default-case-last : [2]
146
203
default-case : [0]
147
204
default-param-last : [0]
148
- dot-location : [2, property]
149
205
dot-notation : [0]
150
- eol-last : [2]
151
206
eqeqeq : [2]
152
207
for-direction : [2]
153
- func-call-spacing : [2, never]
154
208
func-name-matching : [2]
155
209
func-names : [0]
156
210
func-style : [0]
157
- function-call-argument-newline : [0]
158
- function-paren-newline : [0]
159
- generator-star-spacing : [0]
160
211
getter-return : [2]
161
212
grouped-accessor-pairs : [2]
162
213
guard-for-in : [0]
163
214
id-blacklist : [0]
164
215
id-length : [0]
165
216
id-match : [0]
166
- implicit-arrow-linebreak : [0]
167
217
i/consistent-type-specifier-style : [0]
168
218
i/default : [0]
169
219
i/dynamic-import-chunkname : [0]
@@ -207,7 +257,6 @@ rules:
207
257
i/order : [0]
208
258
i/prefer-default-export : [0]
209
259
i/unambiguous : [0]
210
- indent : [2, 2, {SwitchCase: 1}]
211
260
init-declarations : [0]
212
261
jquery/no-ajax-events : [2]
213
262
jquery/no-ajax : [0]
@@ -258,27 +307,17 @@ rules:
258
307
jquery/no-val : [0]
259
308
jquery/no-when : [2]
260
309
jquery/no-wrap : [2]
261
- key-spacing : [2]
262
- keyword-spacing : [2]
263
310
line-comment-position : [0]
264
- linebreak-style : [2, unix]
265
- lines-around-comment : [0]
266
- lines-between-class-members : [0]
267
311
logical-assignment-operators : [0]
268
312
max-classes-per-file : [0]
269
313
max-depth : [0]
270
- max-len : [0]
271
314
max-lines-per-function : [0]
272
315
max-lines : [0]
273
316
max-nested-callbacks : [0]
274
317
max-params : [0]
275
- max-statements-per-line : [0]
276
318
max-statements : [0]
277
319
multiline-comment-style : [2, separate-lines]
278
- multiline-ternary : [0]
279
320
new-cap : [0]
280
- new-parens : [2]
281
- newline-per-chained-call : [0]
282
321
no-alert : [0]
283
322
no-array-constructor : [2]
284
323
no-async-promise-executor : [0]
@@ -290,7 +329,6 @@ rules:
290
329
no-class-assign : [2]
291
330
no-compare-neg-zero : [2]
292
331
no-cond-assign : [2, except-parens]
293
- no-confusing-arrow : [0]
294
332
no-console : [1, {allow: [debug, info, warn, error]}]
295
333
no-const-assign : [2]
296
334
no-constant-binary-expression : [2]
@@ -320,10 +358,7 @@ rules:
320
358
no-extra-bind : [2]
321
359
no-extra-boolean-cast : [2]
322
360
no-extra-label : [0]
323
- no-extra-parens : [0]
324
- no-extra-semi : [2]
325
361
no-fallthrough : [2]
326
- no-floating-decimal : [0]
327
362
no-func-assign : [2]
328
363
no-global-assign : [2]
329
364
no-implicit-coercion : [2]
@@ -437,10 +472,7 @@ rules:
437
472
no-loss-of-precision : [2]
438
473
no-magic-numbers : [0]
439
474
no-misleading-character-class : [2]
440
- no-mixed-operators : [0]
441
- no-mixed-spaces-and-tabs : [2]
442
475
no-multi-assign : [0]
443
- no-multi-spaces : [2, {ignoreEOLComments: true, exceptions: {Property: true}}]
444
476
no-multi-str : [2]
445
477
no-negated-condition : [0]
446
478
no-nested-ternary : [0]
@@ -474,12 +506,10 @@ rules:
474
506
no-shadow-restricted-names : [2]
475
507
no-shadow : [0]
476
508
no-sparse-arrays : [2]
477
- no-tabs : [2]
478
509
no-template-curly-in-string : [2]
479
510
no-ternary : [0]
480
511
no-this-before-super : [2]
481
512
no-throw-literal : [2]
482
- no-trailing-spaces : [2]
483
513
no-undef-init : [2]
484
514
no-undef : [2, {typeof: true}]
485
515
no-undefined : [0]
@@ -509,18 +539,12 @@ rules:
509
539
no-var : [2]
510
540
no-void : [2]
511
541
no-warning-comments : [0]
512
- no-whitespace-before-property : [2]
513
542
no-with : [0] # handled by no-restricted-syntax
514
- nonblock-statement-body-position : [2]
515
- object-curly-newline : [0]
516
- object-curly-spacing : [2, never]
517
543
object-shorthand : [2, always]
518
544
one-var-declaration-per-line : [0]
519
545
one-var : [0]
520
546
operator-assignment : [2, always]
521
547
operator-linebreak : [2, after]
522
- padded-blocks : [2, never]
523
- padding-line-between-statements : [0]
524
548
prefer-arrow-callback : [2, {allowNamedFunctions: true, allowUnboundThis: true}]
525
549
prefer-const : [2, {destructuring: all, ignoreReadBeforeAssign: true}]
526
550
prefer-destructuring : [0]
@@ -534,7 +558,6 @@ rules:
534
558
prefer-rest-params : [2]
535
559
prefer-spread : [2]
536
560
prefer-template : [2]
537
- quote-props : [0]
538
561
quotes : [2, single, {avoidEscape: true, allowTemplateLiterals: true}]
539
562
radix : [2, as-needed]
540
563
regexp/confusing-quantifier : [2]
@@ -620,10 +643,6 @@ rules:
620
643
require-await : [0]
621
644
require-unicode-regexp : [0]
622
645
require-yield : [2]
623
- rest-spread-spacing : [2, never]
624
- semi-spacing : [2, {before: false, after: true}]
625
- semi-style : [2, last]
626
- semi : [2, always, {omitLastInOneLineBlock: true}]
627
646
sonarjs/cognitive-complexity : [0]
628
647
sonarjs/elseif-without-else : [0]
629
648
sonarjs/max-switch-cases : [0]
@@ -659,16 +678,8 @@ rules:
659
678
sort-imports : [0]
660
679
sort-keys : [0]
661
680
sort-vars : [0]
662
- space-before-blocks : [2, always]
663
- space-in-parens : [2, never]
664
- space-infix-ops : [2]
665
- space-unary-ops : [2]
666
- spaced-comment : [2, always]
667
681
strict : [0]
668
- switch-colon-spacing : [2]
669
682
symbol-description : [2]
670
- template-curly-spacing : [2, never]
671
- template-tag-spacing : [2, never]
672
683
unicode-bom : [2, never]
673
684
unicorn/better-regex : [0]
674
685
unicorn/catch-error-name : [0]
@@ -807,7 +818,4 @@ rules:
807
818
wc/no-typos : [2]
808
819
wc/require-listener-teardown : [2]
809
820
wc/tag-name-matches-class : [2]
810
- wrap-iife : [2, inside]
811
- wrap-regex : [0]
812
- yield-star-spacing : [2, after]
813
821
yoda : [2, never]
0 commit comments