@@ -69,7 +69,7 @@ export default defineConfig([
69
69
'no-control-regex' : 1 ,
70
70
'no-debugger' : 1 ,
71
71
'no-dupe-args' : 1 ,
72
- 'no-dupe-class-members' : 0 , // replaced by @typescript -eslint/no-dupe-class-members
72
+ 'no-dupe-class-members' : 0 ,
73
73
'no-dupe-else-if' : 1 ,
74
74
'no-dupe-keys' : 1 ,
75
75
'no-duplicate-case' : 1 ,
@@ -118,14 +118,14 @@ export default defineConfig([
118
118
'block-scoped-var' : 1 ,
119
119
camelcase : 0 ,
120
120
'capitalized-comments' : 0 ,
121
- 'class-methods-use-this' : 0 , // replace by @typescript -eslint/class-methods-use-this
121
+ 'class-methods-use-this' : 1 ,
122
122
complexity : 0 ,
123
123
'consistent-return' : 0 ,
124
124
'consistent-this' : 0 ,
125
125
curly : 0 ,
126
126
'default-case' : 1 ,
127
127
'default-case-last' : 1 ,
128
- 'default-param-last' : 0 , // replaced by @typescript -eslint/default-param-last
128
+ 'default-param-last' : 0 ,
129
129
'dot-notation' : 0 , // replaced by @typescript -eslint/dot-notation
130
130
eqeqeq : [ 1 , 'always' , { null : 'ignore' } ] ,
131
131
'func-name-matching' : 0 ,
@@ -136,7 +136,7 @@ export default defineConfig([
136
136
'id-denylist' : 0 ,
137
137
'id-length' : 0 ,
138
138
'id-match' : 0 ,
139
- 'init-declarations' : 0 , // replaced by @typescript -eslint/init-declarations
139
+ 'init-declarations' : 0 ,
140
140
'logical-assignment-operators' : [ 1 , 'always' , { enforceForIfStatements : true } ] ,
141
141
'max-classes-per-file' : 0 ,
142
142
'max-depth' : 0 ,
@@ -148,7 +148,7 @@ export default defineConfig([
148
148
'multiline-comment-style' : 0 ,
149
149
'new-cap' : 0 ,
150
150
'no-alert' : 0 ,
151
- 'no-array-constructor' : 0 , // replaced by @typescript -eslint/no-array-constructor
151
+ 'no-array-constructor' : 1 ,
152
152
'no-bitwise' : 0 ,
153
153
'no-caller' : 1 ,
154
154
'no-case-declarations' : 1 ,
@@ -158,7 +158,7 @@ export default defineConfig([
158
158
'no-div-regex' : 0 ,
159
159
'no-else-return' : [ 1 , { allowElseIf : false } ] ,
160
160
'no-empty' : [ 1 , { allowEmptyCatch : true } ] ,
161
- 'no-empty-function' : 0 , // replaced by @typescript -eslint/no-empty-function
161
+ 'no-empty-function' : 0 ,
162
162
'no-empty-static-block' : 1 ,
163
163
'no-eq-null' : 0 ,
164
164
'no-eval' : 1 ,
@@ -171,13 +171,13 @@ export default defineConfig([
171
171
'no-implicit-globals' : 0 ,
172
172
'no-implied-eval' : 0 , // replaced by @typescript -eslint/no-implied-eval
173
173
'no-inline-comments' : 0 ,
174
- 'no-invalid-this' : 0 , // replaced by @typescript -eslint/no-invalid-this
174
+ 'no-invalid-this' : 0 ,
175
175
'no-iterator' : 1 ,
176
176
'no-label-var' : 1 ,
177
177
'no-labels' : 1 ,
178
178
'no-lone-blocks' : 1 ,
179
179
'no-lonely-if' : 1 ,
180
- 'no-loop-func' : 0 , // replaced by @typescript -eslint/no-loop-func
180
+ 'no-loop-func' : 0 ,
181
181
'no-magic-numbers' : 0 , // replaced by @typescript -eslint/no-magic-numbers
182
182
'no-multi-assign' : 0 ,
183
183
'no-multi-str' : 1 ,
@@ -218,13 +218,13 @@ export default defineConfig([
218
218
'no-undefined' : 0 ,
219
219
'no-underscore-dangle' : 0 ,
220
220
'no-unneeded-ternary' : [ 1 , { defaultAssignment : false } ] ,
221
- 'no-unused-expressions' : 0 , // replaced by @typescript -eslint/no-unused-expressions
221
+ 'no-unused-expressions' : [ 1 , { allowTaggedTemplates : true , enforceForJSX : true } ] ,
222
222
'no-unused-labels' : 1 ,
223
223
'no-useless-call' : 1 ,
224
224
'no-useless-catch' : 1 ,
225
225
'no-useless-computed-key' : 1 ,
226
226
'no-useless-concat' : 1 ,
227
- 'no-useless-constructor' : 0 , // replaced by @typescript -eslint/no-useless-constructor
227
+ 'no-useless-constructor' : 1 ,
228
228
'no-useless-escape' : 1 ,
229
229
'no-useless-rename' : 1 ,
230
230
'no-useless-return' : 1 ,
@@ -394,7 +394,7 @@ export default defineConfig([
394
394
// https://eslint-react.xyz/
395
395
'react-hooks-extra/no-unnecessary-use-callback' : 1 ,
396
396
'react-hooks-extra/no-unnecessary-use-memo' : 1 ,
397
- 'react-hooks-extra/no-useless-custom-hooks ' : 1 ,
397
+ 'react-hooks-extra/no-unnecessary-use-prefix ' : 1 ,
398
398
'react-hooks-extra/prefer-use-state-lazy-initialization' : 1 ,
399
399
400
400
// SonarJS rules
@@ -440,7 +440,7 @@ export default defineConfig([
440
440
'@typescript-eslint/ban-ts-comment' : [ 1 , { 'ts-expect-error' : false } ] ,
441
441
'@typescript-eslint/ban-tslint-comment' : 0 ,
442
442
'@typescript-eslint/class-literal-property-style' : 0 ,
443
- '@typescript-eslint/class-methods-use-this' : 1 ,
443
+ '@typescript-eslint/class-methods-use-this' : 0 ,
444
444
'@typescript-eslint/consistent-generic-constructors' : 1 ,
445
445
'@typescript-eslint/consistent-indexed-object-style' : 1 ,
446
446
'@typescript-eslint/consistent-return' : 0 ,
@@ -496,6 +496,7 @@ export default defineConfig([
496
496
'@typescript-eslint/no-unnecessary-type-arguments' : 1 ,
497
497
'@typescript-eslint/no-unnecessary-type-assertion' : 1 ,
498
498
'@typescript-eslint/no-unnecessary-type-constraint' : 1 ,
499
+ '@typescript-eslint/no-unnecessary-type-conversion' : 1 ,
499
500
'@typescript-eslint/no-unnecessary-type-parameters' : 1 ,
500
501
'@typescript-eslint/no-unsafe-argument' : 0 ,
501
502
'@typescript-eslint/no-unsafe-assignment' : 0 ,
@@ -554,7 +555,7 @@ export default defineConfig([
554
555
'@typescript-eslint/dot-notation' : 1 ,
555
556
'@typescript-eslint/init-declarations' : 0 ,
556
557
'@typescript-eslint/max-params' : 0 ,
557
- '@typescript-eslint/no-array-constructor' : 1 ,
558
+ '@typescript-eslint/no-array-constructor' : 0 ,
558
559
'@typescript-eslint/no-dupe-class-members' : 0 ,
559
560
'@typescript-eslint/no-empty-function' : 0 ,
560
561
'@typescript-eslint/no-implied-eval' : 1 ,
@@ -576,13 +577,10 @@ export default defineConfig([
576
577
}
577
578
] ,
578
579
'@typescript-eslint/no-shadow' : 0 ,
579
- '@typescript-eslint/no-unused-expressions' : [
580
- 1 ,
581
- { allowTaggedTemplates : true , enforceForJSX : true }
582
- ] ,
580
+ '@typescript-eslint/no-unused-expressions' : 0 ,
583
581
'@typescript-eslint/no-unused-vars' : [ 1 , { ignoreRestSiblings : true } ] ,
584
582
'@typescript-eslint/no-use-before-define' : 0 ,
585
- '@typescript-eslint/no-useless-constructor' : 1 ,
583
+ '@typescript-eslint/no-useless-constructor' : 0 ,
586
584
'@typescript-eslint/only-throw-error' : 1 ,
587
585
'@typescript-eslint/require-await' : 1 ,
588
586
'@typescript-eslint/return-await' : 1 ,
0 commit comments