@eslint-react/eslint-plugin 2.1.0-next.6 → 2.1.0-next.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -3
- package/dist/index.d.ts +110 -111
- package/dist/index.js +39 -42
- package/package.json +10 -10
package/README.md
CHANGED
|
@@ -123,7 +123,7 @@ export default defineConfig([
|
|
|
123
123
|
|
|
124
124
|
## General Purpose
|
|
125
125
|
|
|
126
|
-
- `strict
|
|
126
|
+
- `strict`\
|
|
127
127
|
Same as the `recommended` preset but enables additional strict rules.
|
|
128
128
|
|
|
129
129
|
- `recommended`\
|
|
@@ -132,10 +132,10 @@ export default defineConfig([
|
|
|
132
132
|
|
|
133
133
|
## TypeScript Specialized
|
|
134
134
|
|
|
135
|
-
- `strict-typescript
|
|
135
|
+
- `strict-typescript`\
|
|
136
136
|
Same as the `strict` preset but disables rules that can be enforced by TypeScript.
|
|
137
137
|
|
|
138
|
-
- `strict-type-checked
|
|
138
|
+
- `strict-type-checked`\
|
|
139
139
|
Same as the `strict-typescript` preset but enables additional rules that require type information.
|
|
140
140
|
|
|
141
141
|
- `recommended-typescript`\
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as _eslint_react_kit0 from "@eslint-react/kit";
|
|
2
2
|
import { RuleConfig } from "@eslint-react/kit";
|
|
3
3
|
|
|
4
4
|
//#region src/configs/all.d.ts
|
|
@@ -105,14 +105,14 @@ declare const plugins$9: {
|
|
|
105
105
|
plugins: {};
|
|
106
106
|
name?: string;
|
|
107
107
|
rules?: Record<string, RuleConfig>;
|
|
108
|
-
settings?:
|
|
108
|
+
settings?: _eslint_react_kit0.SettingsConfig;
|
|
109
109
|
};
|
|
110
110
|
};
|
|
111
111
|
meta: {
|
|
112
112
|
name: string;
|
|
113
113
|
version: string;
|
|
114
114
|
};
|
|
115
|
-
rules: Record<string,
|
|
115
|
+
rules: Record<string, _eslint_react_kit0.CompatibleRule>;
|
|
116
116
|
};
|
|
117
117
|
"@eslint-react/hooks-extra": {
|
|
118
118
|
configs: {
|
|
@@ -120,14 +120,14 @@ declare const plugins$9: {
|
|
|
120
120
|
plugins: {};
|
|
121
121
|
name?: string;
|
|
122
122
|
rules?: Record<string, RuleConfig>;
|
|
123
|
-
settings?:
|
|
123
|
+
settings?: _eslint_react_kit0.SettingsConfig;
|
|
124
124
|
};
|
|
125
125
|
};
|
|
126
126
|
meta: {
|
|
127
127
|
name: string;
|
|
128
128
|
version: string;
|
|
129
129
|
};
|
|
130
|
-
rules: Record<string,
|
|
130
|
+
rules: Record<string, _eslint_react_kit0.CompatibleRule>;
|
|
131
131
|
};
|
|
132
132
|
"@eslint-react/naming-convention": {
|
|
133
133
|
configs: {
|
|
@@ -135,14 +135,14 @@ declare const plugins$9: {
|
|
|
135
135
|
plugins: {};
|
|
136
136
|
name?: string;
|
|
137
137
|
rules?: Record<string, RuleConfig>;
|
|
138
|
-
settings?:
|
|
138
|
+
settings?: _eslint_react_kit0.SettingsConfig;
|
|
139
139
|
};
|
|
140
140
|
};
|
|
141
141
|
meta: {
|
|
142
142
|
name: string;
|
|
143
143
|
version: string;
|
|
144
144
|
};
|
|
145
|
-
rules: Record<string,
|
|
145
|
+
rules: Record<string, _eslint_react_kit0.CompatibleRule>;
|
|
146
146
|
};
|
|
147
147
|
"@eslint-react/web-api": {
|
|
148
148
|
configs: {
|
|
@@ -150,14 +150,14 @@ declare const plugins$9: {
|
|
|
150
150
|
plugins: {};
|
|
151
151
|
name?: string;
|
|
152
152
|
rules?: Record<string, RuleConfig>;
|
|
153
|
-
settings?:
|
|
153
|
+
settings?: _eslint_react_kit0.SettingsConfig;
|
|
154
154
|
};
|
|
155
155
|
};
|
|
156
156
|
meta: {
|
|
157
157
|
name: string;
|
|
158
158
|
version: string;
|
|
159
159
|
};
|
|
160
|
-
rules: Record<string,
|
|
160
|
+
rules: Record<string, _eslint_react_kit0.CompatibleRule>;
|
|
161
161
|
};
|
|
162
162
|
"@eslint-react/dom": {
|
|
163
163
|
configs: {
|
|
@@ -165,20 +165,20 @@ declare const plugins$9: {
|
|
|
165
165
|
plugins: {};
|
|
166
166
|
name?: string;
|
|
167
167
|
rules?: Record<string, RuleConfig>;
|
|
168
|
-
settings?:
|
|
168
|
+
settings?: _eslint_react_kit0.SettingsConfig;
|
|
169
169
|
};
|
|
170
170
|
strict: {
|
|
171
171
|
plugins: {};
|
|
172
172
|
name?: string;
|
|
173
173
|
rules?: Record<string, RuleConfig>;
|
|
174
|
-
settings?:
|
|
174
|
+
settings?: _eslint_react_kit0.SettingsConfig;
|
|
175
175
|
};
|
|
176
176
|
};
|
|
177
177
|
meta: {
|
|
178
178
|
name: string;
|
|
179
179
|
version: string;
|
|
180
180
|
};
|
|
181
|
-
rules: Record<string,
|
|
181
|
+
rules: Record<string, _eslint_react_kit0.CompatibleRule>;
|
|
182
182
|
};
|
|
183
183
|
"@eslint-react": {
|
|
184
184
|
configs: {
|
|
@@ -186,26 +186,26 @@ declare const plugins$9: {
|
|
|
186
186
|
plugins: {};
|
|
187
187
|
name?: string;
|
|
188
188
|
rules?: Record<string, RuleConfig>;
|
|
189
|
-
settings?:
|
|
189
|
+
settings?: _eslint_react_kit0.SettingsConfig;
|
|
190
190
|
};
|
|
191
191
|
"recommended-type-checked": {
|
|
192
192
|
plugins: {};
|
|
193
193
|
name?: string;
|
|
194
194
|
rules?: Record<string, RuleConfig>;
|
|
195
|
-
settings?:
|
|
195
|
+
settings?: _eslint_react_kit0.SettingsConfig;
|
|
196
196
|
};
|
|
197
197
|
"recommended-typescript": {
|
|
198
198
|
plugins: {};
|
|
199
199
|
name?: string;
|
|
200
200
|
rules?: Record<string, RuleConfig>;
|
|
201
|
-
settings?:
|
|
201
|
+
settings?: _eslint_react_kit0.SettingsConfig;
|
|
202
202
|
};
|
|
203
203
|
};
|
|
204
204
|
meta: {
|
|
205
205
|
name: string;
|
|
206
206
|
version: string;
|
|
207
207
|
};
|
|
208
|
-
rules: Record<string,
|
|
208
|
+
rules: Record<string, _eslint_react_kit0.CompatibleRule>;
|
|
209
209
|
};
|
|
210
210
|
};
|
|
211
211
|
declare const settings$6: {
|
|
@@ -233,14 +233,14 @@ declare const plugins$8: {
|
|
|
233
233
|
plugins: {};
|
|
234
234
|
name?: string;
|
|
235
235
|
rules?: Record<string, RuleConfig>;
|
|
236
|
-
settings?:
|
|
236
|
+
settings?: _eslint_react_kit0.SettingsConfig;
|
|
237
237
|
};
|
|
238
238
|
};
|
|
239
239
|
meta: {
|
|
240
240
|
name: string;
|
|
241
241
|
version: string;
|
|
242
242
|
};
|
|
243
|
-
rules: Record<string,
|
|
243
|
+
rules: Record<string, _eslint_react_kit0.CompatibleRule>;
|
|
244
244
|
};
|
|
245
245
|
};
|
|
246
246
|
declare namespace disable_conflict_eslint_plugin_react_d_exports {
|
|
@@ -293,20 +293,20 @@ declare const plugins$7: {
|
|
|
293
293
|
plugins: {};
|
|
294
294
|
name?: string;
|
|
295
295
|
rules?: Record<string, RuleConfig>;
|
|
296
|
-
settings?:
|
|
296
|
+
settings?: _eslint_react_kit0.SettingsConfig;
|
|
297
297
|
};
|
|
298
298
|
strict: {
|
|
299
299
|
plugins: {};
|
|
300
300
|
name?: string;
|
|
301
301
|
rules?: Record<string, RuleConfig>;
|
|
302
|
-
settings?:
|
|
302
|
+
settings?: _eslint_react_kit0.SettingsConfig;
|
|
303
303
|
};
|
|
304
304
|
};
|
|
305
305
|
meta: {
|
|
306
306
|
name: string;
|
|
307
307
|
version: string;
|
|
308
308
|
};
|
|
309
|
-
rules: Record<string,
|
|
309
|
+
rules: Record<string, _eslint_react_kit0.CompatibleRule>;
|
|
310
310
|
};
|
|
311
311
|
};
|
|
312
312
|
declare namespace no_deprecated_d_exports {
|
|
@@ -331,20 +331,20 @@ declare const plugins$6: {
|
|
|
331
331
|
plugins: {};
|
|
332
332
|
name?: string;
|
|
333
333
|
rules?: Record<string, RuleConfig>;
|
|
334
|
-
settings?:
|
|
334
|
+
settings?: _eslint_react_kit0.SettingsConfig;
|
|
335
335
|
};
|
|
336
336
|
strict: {
|
|
337
337
|
plugins: {};
|
|
338
338
|
name?: string;
|
|
339
339
|
rules?: Record<string, RuleConfig>;
|
|
340
|
-
settings?:
|
|
340
|
+
settings?: _eslint_react_kit0.SettingsConfig;
|
|
341
341
|
};
|
|
342
342
|
};
|
|
343
343
|
meta: {
|
|
344
344
|
name: string;
|
|
345
345
|
version: string;
|
|
346
346
|
};
|
|
347
|
-
rules: Record<string,
|
|
347
|
+
rules: Record<string, _eslint_react_kit0.CompatibleRule>;
|
|
348
348
|
};
|
|
349
349
|
"@eslint-react": {
|
|
350
350
|
configs: {
|
|
@@ -352,26 +352,26 @@ declare const plugins$6: {
|
|
|
352
352
|
plugins: {};
|
|
353
353
|
name?: string;
|
|
354
354
|
rules?: Record<string, RuleConfig>;
|
|
355
|
-
settings?:
|
|
355
|
+
settings?: _eslint_react_kit0.SettingsConfig;
|
|
356
356
|
};
|
|
357
357
|
"recommended-type-checked": {
|
|
358
358
|
plugins: {};
|
|
359
359
|
name?: string;
|
|
360
360
|
rules?: Record<string, RuleConfig>;
|
|
361
|
-
settings?:
|
|
361
|
+
settings?: _eslint_react_kit0.SettingsConfig;
|
|
362
362
|
};
|
|
363
363
|
"recommended-typescript": {
|
|
364
364
|
plugins: {};
|
|
365
365
|
name?: string;
|
|
366
366
|
rules?: Record<string, RuleConfig>;
|
|
367
|
-
settings?:
|
|
367
|
+
settings?: _eslint_react_kit0.SettingsConfig;
|
|
368
368
|
};
|
|
369
369
|
};
|
|
370
370
|
meta: {
|
|
371
371
|
name: string;
|
|
372
372
|
version: string;
|
|
373
373
|
};
|
|
374
|
-
rules: Record<string,
|
|
374
|
+
rules: Record<string, _eslint_react_kit0.CompatibleRule>;
|
|
375
375
|
};
|
|
376
376
|
};
|
|
377
377
|
declare namespace off_d_exports {
|
|
@@ -450,14 +450,14 @@ declare const plugins$5: {
|
|
|
450
450
|
plugins: {};
|
|
451
451
|
name?: string;
|
|
452
452
|
rules?: Record<string, RuleConfig>;
|
|
453
|
-
settings?:
|
|
453
|
+
settings?: _eslint_react_kit0.SettingsConfig;
|
|
454
454
|
};
|
|
455
455
|
};
|
|
456
456
|
meta: {
|
|
457
457
|
name: string;
|
|
458
458
|
version: string;
|
|
459
459
|
};
|
|
460
|
-
rules: Record<string,
|
|
460
|
+
rules: Record<string, _eslint_react_kit0.CompatibleRule>;
|
|
461
461
|
};
|
|
462
462
|
"@eslint-react/hooks-extra": {
|
|
463
463
|
configs: {
|
|
@@ -465,14 +465,14 @@ declare const plugins$5: {
|
|
|
465
465
|
plugins: {};
|
|
466
466
|
name?: string;
|
|
467
467
|
rules?: Record<string, RuleConfig>;
|
|
468
|
-
settings?:
|
|
468
|
+
settings?: _eslint_react_kit0.SettingsConfig;
|
|
469
469
|
};
|
|
470
470
|
};
|
|
471
471
|
meta: {
|
|
472
472
|
name: string;
|
|
473
473
|
version: string;
|
|
474
474
|
};
|
|
475
|
-
rules: Record<string,
|
|
475
|
+
rules: Record<string, _eslint_react_kit0.CompatibleRule>;
|
|
476
476
|
};
|
|
477
477
|
"@eslint-react/naming-convention": {
|
|
478
478
|
configs: {
|
|
@@ -480,14 +480,14 @@ declare const plugins$5: {
|
|
|
480
480
|
plugins: {};
|
|
481
481
|
name?: string;
|
|
482
482
|
rules?: Record<string, RuleConfig>;
|
|
483
|
-
settings?:
|
|
483
|
+
settings?: _eslint_react_kit0.SettingsConfig;
|
|
484
484
|
};
|
|
485
485
|
};
|
|
486
486
|
meta: {
|
|
487
487
|
name: string;
|
|
488
488
|
version: string;
|
|
489
489
|
};
|
|
490
|
-
rules: Record<string,
|
|
490
|
+
rules: Record<string, _eslint_react_kit0.CompatibleRule>;
|
|
491
491
|
};
|
|
492
492
|
"@eslint-react/web-api": {
|
|
493
493
|
configs: {
|
|
@@ -495,14 +495,14 @@ declare const plugins$5: {
|
|
|
495
495
|
plugins: {};
|
|
496
496
|
name?: string;
|
|
497
497
|
rules?: Record<string, RuleConfig>;
|
|
498
|
-
settings?:
|
|
498
|
+
settings?: _eslint_react_kit0.SettingsConfig;
|
|
499
499
|
};
|
|
500
500
|
};
|
|
501
501
|
meta: {
|
|
502
502
|
name: string;
|
|
503
503
|
version: string;
|
|
504
504
|
};
|
|
505
|
-
rules: Record<string,
|
|
505
|
+
rules: Record<string, _eslint_react_kit0.CompatibleRule>;
|
|
506
506
|
};
|
|
507
507
|
"@eslint-react/dom": {
|
|
508
508
|
configs: {
|
|
@@ -510,20 +510,20 @@ declare const plugins$5: {
|
|
|
510
510
|
plugins: {};
|
|
511
511
|
name?: string;
|
|
512
512
|
rules?: Record<string, RuleConfig>;
|
|
513
|
-
settings?:
|
|
513
|
+
settings?: _eslint_react_kit0.SettingsConfig;
|
|
514
514
|
};
|
|
515
515
|
strict: {
|
|
516
516
|
plugins: {};
|
|
517
517
|
name?: string;
|
|
518
518
|
rules?: Record<string, RuleConfig>;
|
|
519
|
-
settings?:
|
|
519
|
+
settings?: _eslint_react_kit0.SettingsConfig;
|
|
520
520
|
};
|
|
521
521
|
};
|
|
522
522
|
meta: {
|
|
523
523
|
name: string;
|
|
524
524
|
version: string;
|
|
525
525
|
};
|
|
526
|
-
rules: Record<string,
|
|
526
|
+
rules: Record<string, _eslint_react_kit0.CompatibleRule>;
|
|
527
527
|
};
|
|
528
528
|
"@eslint-react": {
|
|
529
529
|
configs: {
|
|
@@ -531,26 +531,26 @@ declare const plugins$5: {
|
|
|
531
531
|
plugins: {};
|
|
532
532
|
name?: string;
|
|
533
533
|
rules?: Record<string, RuleConfig>;
|
|
534
|
-
settings?:
|
|
534
|
+
settings?: _eslint_react_kit0.SettingsConfig;
|
|
535
535
|
};
|
|
536
536
|
"recommended-type-checked": {
|
|
537
537
|
plugins: {};
|
|
538
538
|
name?: string;
|
|
539
539
|
rules?: Record<string, RuleConfig>;
|
|
540
|
-
settings?:
|
|
540
|
+
settings?: _eslint_react_kit0.SettingsConfig;
|
|
541
541
|
};
|
|
542
542
|
"recommended-typescript": {
|
|
543
543
|
plugins: {};
|
|
544
544
|
name?: string;
|
|
545
545
|
rules?: Record<string, RuleConfig>;
|
|
546
|
-
settings?:
|
|
546
|
+
settings?: _eslint_react_kit0.SettingsConfig;
|
|
547
547
|
};
|
|
548
548
|
};
|
|
549
549
|
meta: {
|
|
550
550
|
name: string;
|
|
551
551
|
version: string;
|
|
552
552
|
};
|
|
553
|
-
rules: Record<string,
|
|
553
|
+
rules: Record<string, _eslint_react_kit0.CompatibleRule>;
|
|
554
554
|
};
|
|
555
555
|
};
|
|
556
556
|
declare const settings$5: {
|
|
@@ -565,8 +565,7 @@ declare namespace recommended_type_checked_d_exports {
|
|
|
565
565
|
}
|
|
566
566
|
declare const name$4 = "@eslint-react/recommended-type-checked";
|
|
567
567
|
declare const rules$4: {
|
|
568
|
-
readonly "@eslint-react/no-leaked-conditional-rendering": "
|
|
569
|
-
readonly "@eslint-react/no-unused-props": "warn";
|
|
568
|
+
readonly "@eslint-react/no-leaked-conditional-rendering": "error";
|
|
570
569
|
readonly "@eslint-react/dom/no-string-style-prop": "off";
|
|
571
570
|
readonly "@eslint-react/dom/no-unknown-property": "off";
|
|
572
571
|
readonly "@eslint-react/jsx-no-duplicate-props": "off";
|
|
@@ -636,14 +635,14 @@ declare const plugins$4: {
|
|
|
636
635
|
plugins: {};
|
|
637
636
|
name?: string;
|
|
638
637
|
rules?: Record<string, RuleConfig>;
|
|
639
|
-
settings?:
|
|
638
|
+
settings?: _eslint_react_kit0.SettingsConfig;
|
|
640
639
|
};
|
|
641
640
|
};
|
|
642
641
|
meta: {
|
|
643
642
|
name: string;
|
|
644
643
|
version: string;
|
|
645
644
|
};
|
|
646
|
-
rules: Record<string,
|
|
645
|
+
rules: Record<string, _eslint_react_kit0.CompatibleRule>;
|
|
647
646
|
};
|
|
648
647
|
"@eslint-react/hooks-extra": {
|
|
649
648
|
configs: {
|
|
@@ -651,14 +650,14 @@ declare const plugins$4: {
|
|
|
651
650
|
plugins: {};
|
|
652
651
|
name?: string;
|
|
653
652
|
rules?: Record<string, RuleConfig>;
|
|
654
|
-
settings?:
|
|
653
|
+
settings?: _eslint_react_kit0.SettingsConfig;
|
|
655
654
|
};
|
|
656
655
|
};
|
|
657
656
|
meta: {
|
|
658
657
|
name: string;
|
|
659
658
|
version: string;
|
|
660
659
|
};
|
|
661
|
-
rules: Record<string,
|
|
660
|
+
rules: Record<string, _eslint_react_kit0.CompatibleRule>;
|
|
662
661
|
};
|
|
663
662
|
"@eslint-react/naming-convention": {
|
|
664
663
|
configs: {
|
|
@@ -666,14 +665,14 @@ declare const plugins$4: {
|
|
|
666
665
|
plugins: {};
|
|
667
666
|
name?: string;
|
|
668
667
|
rules?: Record<string, RuleConfig>;
|
|
669
|
-
settings?:
|
|
668
|
+
settings?: _eslint_react_kit0.SettingsConfig;
|
|
670
669
|
};
|
|
671
670
|
};
|
|
672
671
|
meta: {
|
|
673
672
|
name: string;
|
|
674
673
|
version: string;
|
|
675
674
|
};
|
|
676
|
-
rules: Record<string,
|
|
675
|
+
rules: Record<string, _eslint_react_kit0.CompatibleRule>;
|
|
677
676
|
};
|
|
678
677
|
"@eslint-react/web-api": {
|
|
679
678
|
configs: {
|
|
@@ -681,14 +680,14 @@ declare const plugins$4: {
|
|
|
681
680
|
plugins: {};
|
|
682
681
|
name?: string;
|
|
683
682
|
rules?: Record<string, RuleConfig>;
|
|
684
|
-
settings?:
|
|
683
|
+
settings?: _eslint_react_kit0.SettingsConfig;
|
|
685
684
|
};
|
|
686
685
|
};
|
|
687
686
|
meta: {
|
|
688
687
|
name: string;
|
|
689
688
|
version: string;
|
|
690
689
|
};
|
|
691
|
-
rules: Record<string,
|
|
690
|
+
rules: Record<string, _eslint_react_kit0.CompatibleRule>;
|
|
692
691
|
};
|
|
693
692
|
"@eslint-react/dom": {
|
|
694
693
|
configs: {
|
|
@@ -696,20 +695,20 @@ declare const plugins$4: {
|
|
|
696
695
|
plugins: {};
|
|
697
696
|
name?: string;
|
|
698
697
|
rules?: Record<string, RuleConfig>;
|
|
699
|
-
settings?:
|
|
698
|
+
settings?: _eslint_react_kit0.SettingsConfig;
|
|
700
699
|
};
|
|
701
700
|
strict: {
|
|
702
701
|
plugins: {};
|
|
703
702
|
name?: string;
|
|
704
703
|
rules?: Record<string, RuleConfig>;
|
|
705
|
-
settings?:
|
|
704
|
+
settings?: _eslint_react_kit0.SettingsConfig;
|
|
706
705
|
};
|
|
707
706
|
};
|
|
708
707
|
meta: {
|
|
709
708
|
name: string;
|
|
710
709
|
version: string;
|
|
711
710
|
};
|
|
712
|
-
rules: Record<string,
|
|
711
|
+
rules: Record<string, _eslint_react_kit0.CompatibleRule>;
|
|
713
712
|
};
|
|
714
713
|
"@eslint-react": {
|
|
715
714
|
configs: {
|
|
@@ -717,26 +716,26 @@ declare const plugins$4: {
|
|
|
717
716
|
plugins: {};
|
|
718
717
|
name?: string;
|
|
719
718
|
rules?: Record<string, RuleConfig>;
|
|
720
|
-
settings?:
|
|
719
|
+
settings?: _eslint_react_kit0.SettingsConfig;
|
|
721
720
|
};
|
|
722
721
|
"recommended-type-checked": {
|
|
723
722
|
plugins: {};
|
|
724
723
|
name?: string;
|
|
725
724
|
rules?: Record<string, RuleConfig>;
|
|
726
|
-
settings?:
|
|
725
|
+
settings?: _eslint_react_kit0.SettingsConfig;
|
|
727
726
|
};
|
|
728
727
|
"recommended-typescript": {
|
|
729
728
|
plugins: {};
|
|
730
729
|
name?: string;
|
|
731
730
|
rules?: Record<string, RuleConfig>;
|
|
732
|
-
settings?:
|
|
731
|
+
settings?: _eslint_react_kit0.SettingsConfig;
|
|
733
732
|
};
|
|
734
733
|
};
|
|
735
734
|
meta: {
|
|
736
735
|
name: string;
|
|
737
736
|
version: string;
|
|
738
737
|
};
|
|
739
|
-
rules: Record<string,
|
|
738
|
+
rules: Record<string, _eslint_react_kit0.CompatibleRule>;
|
|
740
739
|
};
|
|
741
740
|
};
|
|
742
741
|
declare const settings$4: {
|
|
@@ -820,14 +819,14 @@ declare const plugins$3: {
|
|
|
820
819
|
plugins: {};
|
|
821
820
|
name?: string;
|
|
822
821
|
rules?: Record<string, RuleConfig>;
|
|
823
|
-
settings?:
|
|
822
|
+
settings?: _eslint_react_kit0.SettingsConfig;
|
|
824
823
|
};
|
|
825
824
|
};
|
|
826
825
|
meta: {
|
|
827
826
|
name: string;
|
|
828
827
|
version: string;
|
|
829
828
|
};
|
|
830
|
-
rules: Record<string,
|
|
829
|
+
rules: Record<string, _eslint_react_kit0.CompatibleRule>;
|
|
831
830
|
};
|
|
832
831
|
"@eslint-react/hooks-extra": {
|
|
833
832
|
configs: {
|
|
@@ -835,14 +834,14 @@ declare const plugins$3: {
|
|
|
835
834
|
plugins: {};
|
|
836
835
|
name?: string;
|
|
837
836
|
rules?: Record<string, RuleConfig>;
|
|
838
|
-
settings?:
|
|
837
|
+
settings?: _eslint_react_kit0.SettingsConfig;
|
|
839
838
|
};
|
|
840
839
|
};
|
|
841
840
|
meta: {
|
|
842
841
|
name: string;
|
|
843
842
|
version: string;
|
|
844
843
|
};
|
|
845
|
-
rules: Record<string,
|
|
844
|
+
rules: Record<string, _eslint_react_kit0.CompatibleRule>;
|
|
846
845
|
};
|
|
847
846
|
"@eslint-react/naming-convention": {
|
|
848
847
|
configs: {
|
|
@@ -850,14 +849,14 @@ declare const plugins$3: {
|
|
|
850
849
|
plugins: {};
|
|
851
850
|
name?: string;
|
|
852
851
|
rules?: Record<string, RuleConfig>;
|
|
853
|
-
settings?:
|
|
852
|
+
settings?: _eslint_react_kit0.SettingsConfig;
|
|
854
853
|
};
|
|
855
854
|
};
|
|
856
855
|
meta: {
|
|
857
856
|
name: string;
|
|
858
857
|
version: string;
|
|
859
858
|
};
|
|
860
|
-
rules: Record<string,
|
|
859
|
+
rules: Record<string, _eslint_react_kit0.CompatibleRule>;
|
|
861
860
|
};
|
|
862
861
|
"@eslint-react/web-api": {
|
|
863
862
|
configs: {
|
|
@@ -865,14 +864,14 @@ declare const plugins$3: {
|
|
|
865
864
|
plugins: {};
|
|
866
865
|
name?: string;
|
|
867
866
|
rules?: Record<string, RuleConfig>;
|
|
868
|
-
settings?:
|
|
867
|
+
settings?: _eslint_react_kit0.SettingsConfig;
|
|
869
868
|
};
|
|
870
869
|
};
|
|
871
870
|
meta: {
|
|
872
871
|
name: string;
|
|
873
872
|
version: string;
|
|
874
873
|
};
|
|
875
|
-
rules: Record<string,
|
|
874
|
+
rules: Record<string, _eslint_react_kit0.CompatibleRule>;
|
|
876
875
|
};
|
|
877
876
|
"@eslint-react/dom": {
|
|
878
877
|
configs: {
|
|
@@ -880,20 +879,20 @@ declare const plugins$3: {
|
|
|
880
879
|
plugins: {};
|
|
881
880
|
name?: string;
|
|
882
881
|
rules?: Record<string, RuleConfig>;
|
|
883
|
-
settings?:
|
|
882
|
+
settings?: _eslint_react_kit0.SettingsConfig;
|
|
884
883
|
};
|
|
885
884
|
strict: {
|
|
886
885
|
plugins: {};
|
|
887
886
|
name?: string;
|
|
888
887
|
rules?: Record<string, RuleConfig>;
|
|
889
|
-
settings?:
|
|
888
|
+
settings?: _eslint_react_kit0.SettingsConfig;
|
|
890
889
|
};
|
|
891
890
|
};
|
|
892
891
|
meta: {
|
|
893
892
|
name: string;
|
|
894
893
|
version: string;
|
|
895
894
|
};
|
|
896
|
-
rules: Record<string,
|
|
895
|
+
rules: Record<string, _eslint_react_kit0.CompatibleRule>;
|
|
897
896
|
};
|
|
898
897
|
"@eslint-react": {
|
|
899
898
|
configs: {
|
|
@@ -901,26 +900,26 @@ declare const plugins$3: {
|
|
|
901
900
|
plugins: {};
|
|
902
901
|
name?: string;
|
|
903
902
|
rules?: Record<string, RuleConfig>;
|
|
904
|
-
settings?:
|
|
903
|
+
settings?: _eslint_react_kit0.SettingsConfig;
|
|
905
904
|
};
|
|
906
905
|
"recommended-type-checked": {
|
|
907
906
|
plugins: {};
|
|
908
907
|
name?: string;
|
|
909
908
|
rules?: Record<string, RuleConfig>;
|
|
910
|
-
settings?:
|
|
909
|
+
settings?: _eslint_react_kit0.SettingsConfig;
|
|
911
910
|
};
|
|
912
911
|
"recommended-typescript": {
|
|
913
912
|
plugins: {};
|
|
914
913
|
name?: string;
|
|
915
914
|
rules?: Record<string, RuleConfig>;
|
|
916
|
-
settings?:
|
|
915
|
+
settings?: _eslint_react_kit0.SettingsConfig;
|
|
917
916
|
};
|
|
918
917
|
};
|
|
919
918
|
meta: {
|
|
920
919
|
name: string;
|
|
921
920
|
version: string;
|
|
922
921
|
};
|
|
923
|
-
rules: Record<string,
|
|
922
|
+
rules: Record<string, _eslint_react_kit0.CompatibleRule>;
|
|
924
923
|
};
|
|
925
924
|
};
|
|
926
925
|
declare const settings$3: {
|
|
@@ -935,7 +934,7 @@ declare namespace strict_type_checked_d_exports {
|
|
|
935
934
|
}
|
|
936
935
|
declare const name$2 = "@eslint-react/strict-type-checked";
|
|
937
936
|
declare const rules$2: {
|
|
938
|
-
readonly "@eslint-react/no-leaked-conditional-rendering": "
|
|
937
|
+
readonly "@eslint-react/no-leaked-conditional-rendering": "error";
|
|
939
938
|
readonly "@eslint-react/no-unused-props": "warn";
|
|
940
939
|
readonly "@eslint-react/dom/no-string-style-prop": "off";
|
|
941
940
|
readonly "@eslint-react/dom/no-unknown-property": "off";
|
|
@@ -1021,14 +1020,14 @@ declare const plugins$2: {
|
|
|
1021
1020
|
plugins: {};
|
|
1022
1021
|
name?: string;
|
|
1023
1022
|
rules?: Record<string, RuleConfig>;
|
|
1024
|
-
settings?:
|
|
1023
|
+
settings?: _eslint_react_kit0.SettingsConfig;
|
|
1025
1024
|
};
|
|
1026
1025
|
};
|
|
1027
1026
|
meta: {
|
|
1028
1027
|
name: string;
|
|
1029
1028
|
version: string;
|
|
1030
1029
|
};
|
|
1031
|
-
rules: Record<string,
|
|
1030
|
+
rules: Record<string, _eslint_react_kit0.CompatibleRule>;
|
|
1032
1031
|
};
|
|
1033
1032
|
"@eslint-react/hooks-extra": {
|
|
1034
1033
|
configs: {
|
|
@@ -1036,14 +1035,14 @@ declare const plugins$2: {
|
|
|
1036
1035
|
plugins: {};
|
|
1037
1036
|
name?: string;
|
|
1038
1037
|
rules?: Record<string, RuleConfig>;
|
|
1039
|
-
settings?:
|
|
1038
|
+
settings?: _eslint_react_kit0.SettingsConfig;
|
|
1040
1039
|
};
|
|
1041
1040
|
};
|
|
1042
1041
|
meta: {
|
|
1043
1042
|
name: string;
|
|
1044
1043
|
version: string;
|
|
1045
1044
|
};
|
|
1046
|
-
rules: Record<string,
|
|
1045
|
+
rules: Record<string, _eslint_react_kit0.CompatibleRule>;
|
|
1047
1046
|
};
|
|
1048
1047
|
"@eslint-react/naming-convention": {
|
|
1049
1048
|
configs: {
|
|
@@ -1051,14 +1050,14 @@ declare const plugins$2: {
|
|
|
1051
1050
|
plugins: {};
|
|
1052
1051
|
name?: string;
|
|
1053
1052
|
rules?: Record<string, RuleConfig>;
|
|
1054
|
-
settings?:
|
|
1053
|
+
settings?: _eslint_react_kit0.SettingsConfig;
|
|
1055
1054
|
};
|
|
1056
1055
|
};
|
|
1057
1056
|
meta: {
|
|
1058
1057
|
name: string;
|
|
1059
1058
|
version: string;
|
|
1060
1059
|
};
|
|
1061
|
-
rules: Record<string,
|
|
1060
|
+
rules: Record<string, _eslint_react_kit0.CompatibleRule>;
|
|
1062
1061
|
};
|
|
1063
1062
|
"@eslint-react/web-api": {
|
|
1064
1063
|
configs: {
|
|
@@ -1066,14 +1065,14 @@ declare const plugins$2: {
|
|
|
1066
1065
|
plugins: {};
|
|
1067
1066
|
name?: string;
|
|
1068
1067
|
rules?: Record<string, RuleConfig>;
|
|
1069
|
-
settings?:
|
|
1068
|
+
settings?: _eslint_react_kit0.SettingsConfig;
|
|
1070
1069
|
};
|
|
1071
1070
|
};
|
|
1072
1071
|
meta: {
|
|
1073
1072
|
name: string;
|
|
1074
1073
|
version: string;
|
|
1075
1074
|
};
|
|
1076
|
-
rules: Record<string,
|
|
1075
|
+
rules: Record<string, _eslint_react_kit0.CompatibleRule>;
|
|
1077
1076
|
};
|
|
1078
1077
|
"@eslint-react/dom": {
|
|
1079
1078
|
configs: {
|
|
@@ -1081,20 +1080,20 @@ declare const plugins$2: {
|
|
|
1081
1080
|
plugins: {};
|
|
1082
1081
|
name?: string;
|
|
1083
1082
|
rules?: Record<string, RuleConfig>;
|
|
1084
|
-
settings?:
|
|
1083
|
+
settings?: _eslint_react_kit0.SettingsConfig;
|
|
1085
1084
|
};
|
|
1086
1085
|
strict: {
|
|
1087
1086
|
plugins: {};
|
|
1088
1087
|
name?: string;
|
|
1089
1088
|
rules?: Record<string, RuleConfig>;
|
|
1090
|
-
settings?:
|
|
1089
|
+
settings?: _eslint_react_kit0.SettingsConfig;
|
|
1091
1090
|
};
|
|
1092
1091
|
};
|
|
1093
1092
|
meta: {
|
|
1094
1093
|
name: string;
|
|
1095
1094
|
version: string;
|
|
1096
1095
|
};
|
|
1097
|
-
rules: Record<string,
|
|
1096
|
+
rules: Record<string, _eslint_react_kit0.CompatibleRule>;
|
|
1098
1097
|
};
|
|
1099
1098
|
"@eslint-react": {
|
|
1100
1099
|
configs: {
|
|
@@ -1102,26 +1101,26 @@ declare const plugins$2: {
|
|
|
1102
1101
|
plugins: {};
|
|
1103
1102
|
name?: string;
|
|
1104
1103
|
rules?: Record<string, RuleConfig>;
|
|
1105
|
-
settings?:
|
|
1104
|
+
settings?: _eslint_react_kit0.SettingsConfig;
|
|
1106
1105
|
};
|
|
1107
1106
|
"recommended-type-checked": {
|
|
1108
1107
|
plugins: {};
|
|
1109
1108
|
name?: string;
|
|
1110
1109
|
rules?: Record<string, RuleConfig>;
|
|
1111
|
-
settings?:
|
|
1110
|
+
settings?: _eslint_react_kit0.SettingsConfig;
|
|
1112
1111
|
};
|
|
1113
1112
|
"recommended-typescript": {
|
|
1114
1113
|
plugins: {};
|
|
1115
1114
|
name?: string;
|
|
1116
1115
|
rules?: Record<string, RuleConfig>;
|
|
1117
|
-
settings?:
|
|
1116
|
+
settings?: _eslint_react_kit0.SettingsConfig;
|
|
1118
1117
|
};
|
|
1119
1118
|
};
|
|
1120
1119
|
meta: {
|
|
1121
1120
|
name: string;
|
|
1122
1121
|
version: string;
|
|
1123
1122
|
};
|
|
1124
|
-
rules: Record<string,
|
|
1123
|
+
rules: Record<string, _eslint_react_kit0.CompatibleRule>;
|
|
1125
1124
|
};
|
|
1126
1125
|
};
|
|
1127
1126
|
declare const settings$2: {
|
|
@@ -1221,14 +1220,14 @@ declare const plugins$1: {
|
|
|
1221
1220
|
plugins: {};
|
|
1222
1221
|
name?: string;
|
|
1223
1222
|
rules?: Record<string, RuleConfig>;
|
|
1224
|
-
settings?:
|
|
1223
|
+
settings?: _eslint_react_kit0.SettingsConfig;
|
|
1225
1224
|
};
|
|
1226
1225
|
};
|
|
1227
1226
|
meta: {
|
|
1228
1227
|
name: string;
|
|
1229
1228
|
version: string;
|
|
1230
1229
|
};
|
|
1231
|
-
rules: Record<string,
|
|
1230
|
+
rules: Record<string, _eslint_react_kit0.CompatibleRule>;
|
|
1232
1231
|
};
|
|
1233
1232
|
"@eslint-react/hooks-extra": {
|
|
1234
1233
|
configs: {
|
|
@@ -1236,14 +1235,14 @@ declare const plugins$1: {
|
|
|
1236
1235
|
plugins: {};
|
|
1237
1236
|
name?: string;
|
|
1238
1237
|
rules?: Record<string, RuleConfig>;
|
|
1239
|
-
settings?:
|
|
1238
|
+
settings?: _eslint_react_kit0.SettingsConfig;
|
|
1240
1239
|
};
|
|
1241
1240
|
};
|
|
1242
1241
|
meta: {
|
|
1243
1242
|
name: string;
|
|
1244
1243
|
version: string;
|
|
1245
1244
|
};
|
|
1246
|
-
rules: Record<string,
|
|
1245
|
+
rules: Record<string, _eslint_react_kit0.CompatibleRule>;
|
|
1247
1246
|
};
|
|
1248
1247
|
"@eslint-react/naming-convention": {
|
|
1249
1248
|
configs: {
|
|
@@ -1251,14 +1250,14 @@ declare const plugins$1: {
|
|
|
1251
1250
|
plugins: {};
|
|
1252
1251
|
name?: string;
|
|
1253
1252
|
rules?: Record<string, RuleConfig>;
|
|
1254
|
-
settings?:
|
|
1253
|
+
settings?: _eslint_react_kit0.SettingsConfig;
|
|
1255
1254
|
};
|
|
1256
1255
|
};
|
|
1257
1256
|
meta: {
|
|
1258
1257
|
name: string;
|
|
1259
1258
|
version: string;
|
|
1260
1259
|
};
|
|
1261
|
-
rules: Record<string,
|
|
1260
|
+
rules: Record<string, _eslint_react_kit0.CompatibleRule>;
|
|
1262
1261
|
};
|
|
1263
1262
|
"@eslint-react/web-api": {
|
|
1264
1263
|
configs: {
|
|
@@ -1266,14 +1265,14 @@ declare const plugins$1: {
|
|
|
1266
1265
|
plugins: {};
|
|
1267
1266
|
name?: string;
|
|
1268
1267
|
rules?: Record<string, RuleConfig>;
|
|
1269
|
-
settings?:
|
|
1268
|
+
settings?: _eslint_react_kit0.SettingsConfig;
|
|
1270
1269
|
};
|
|
1271
1270
|
};
|
|
1272
1271
|
meta: {
|
|
1273
1272
|
name: string;
|
|
1274
1273
|
version: string;
|
|
1275
1274
|
};
|
|
1276
|
-
rules: Record<string,
|
|
1275
|
+
rules: Record<string, _eslint_react_kit0.CompatibleRule>;
|
|
1277
1276
|
};
|
|
1278
1277
|
"@eslint-react/dom": {
|
|
1279
1278
|
configs: {
|
|
@@ -1281,20 +1280,20 @@ declare const plugins$1: {
|
|
|
1281
1280
|
plugins: {};
|
|
1282
1281
|
name?: string;
|
|
1283
1282
|
rules?: Record<string, RuleConfig>;
|
|
1284
|
-
settings?:
|
|
1283
|
+
settings?: _eslint_react_kit0.SettingsConfig;
|
|
1285
1284
|
};
|
|
1286
1285
|
strict: {
|
|
1287
1286
|
plugins: {};
|
|
1288
1287
|
name?: string;
|
|
1289
1288
|
rules?: Record<string, RuleConfig>;
|
|
1290
|
-
settings?:
|
|
1289
|
+
settings?: _eslint_react_kit0.SettingsConfig;
|
|
1291
1290
|
};
|
|
1292
1291
|
};
|
|
1293
1292
|
meta: {
|
|
1294
1293
|
name: string;
|
|
1295
1294
|
version: string;
|
|
1296
1295
|
};
|
|
1297
|
-
rules: Record<string,
|
|
1296
|
+
rules: Record<string, _eslint_react_kit0.CompatibleRule>;
|
|
1298
1297
|
};
|
|
1299
1298
|
"@eslint-react": {
|
|
1300
1299
|
configs: {
|
|
@@ -1302,26 +1301,26 @@ declare const plugins$1: {
|
|
|
1302
1301
|
plugins: {};
|
|
1303
1302
|
name?: string;
|
|
1304
1303
|
rules?: Record<string, RuleConfig>;
|
|
1305
|
-
settings?:
|
|
1304
|
+
settings?: _eslint_react_kit0.SettingsConfig;
|
|
1306
1305
|
};
|
|
1307
1306
|
"recommended-type-checked": {
|
|
1308
1307
|
plugins: {};
|
|
1309
1308
|
name?: string;
|
|
1310
1309
|
rules?: Record<string, RuleConfig>;
|
|
1311
|
-
settings?:
|
|
1310
|
+
settings?: _eslint_react_kit0.SettingsConfig;
|
|
1312
1311
|
};
|
|
1313
1312
|
"recommended-typescript": {
|
|
1314
1313
|
plugins: {};
|
|
1315
1314
|
name?: string;
|
|
1316
1315
|
rules?: Record<string, RuleConfig>;
|
|
1317
|
-
settings?:
|
|
1316
|
+
settings?: _eslint_react_kit0.SettingsConfig;
|
|
1318
1317
|
};
|
|
1319
1318
|
};
|
|
1320
1319
|
meta: {
|
|
1321
1320
|
name: string;
|
|
1322
1321
|
version: string;
|
|
1323
1322
|
};
|
|
1324
|
-
rules: Record<string,
|
|
1323
|
+
rules: Record<string, _eslint_react_kit0.CompatibleRule>;
|
|
1325
1324
|
};
|
|
1326
1325
|
};
|
|
1327
1326
|
declare const settings$1: {
|
|
@@ -1383,26 +1382,26 @@ declare const plugins: {
|
|
|
1383
1382
|
plugins: {};
|
|
1384
1383
|
name?: string;
|
|
1385
1384
|
rules?: Record<string, RuleConfig>;
|
|
1386
|
-
settings?:
|
|
1385
|
+
settings?: _eslint_react_kit0.SettingsConfig;
|
|
1387
1386
|
};
|
|
1388
1387
|
"recommended-type-checked": {
|
|
1389
1388
|
plugins: {};
|
|
1390
1389
|
name?: string;
|
|
1391
1390
|
rules?: Record<string, RuleConfig>;
|
|
1392
|
-
settings?:
|
|
1391
|
+
settings?: _eslint_react_kit0.SettingsConfig;
|
|
1393
1392
|
};
|
|
1394
1393
|
"recommended-typescript": {
|
|
1395
1394
|
plugins: {};
|
|
1396
1395
|
name?: string;
|
|
1397
1396
|
rules?: Record<string, RuleConfig>;
|
|
1398
|
-
settings?:
|
|
1397
|
+
settings?: _eslint_react_kit0.SettingsConfig;
|
|
1399
1398
|
};
|
|
1400
1399
|
};
|
|
1401
1400
|
meta: {
|
|
1402
1401
|
name: string;
|
|
1403
1402
|
version: string;
|
|
1404
1403
|
};
|
|
1405
|
-
rules: Record<string,
|
|
1404
|
+
rules: Record<string, _eslint_react_kit0.CompatibleRule>;
|
|
1406
1405
|
};
|
|
1407
1406
|
};
|
|
1408
1407
|
declare const settings: {
|
|
@@ -1487,7 +1486,7 @@ declare const _default: {
|
|
|
1487
1486
|
name: string;
|
|
1488
1487
|
version: string;
|
|
1489
1488
|
};
|
|
1490
|
-
rules: Record<string,
|
|
1489
|
+
rules: Record<string, _eslint_react_kit0.CompatibleRule>;
|
|
1491
1490
|
};
|
|
1492
1491
|
//#endregion
|
|
1493
1492
|
export { _default as default };
|
package/dist/index.js
CHANGED
|
@@ -9,17 +9,17 @@ import { DEFAULT_ESLINT_REACT_SETTINGS } from "@eslint-react/shared";
|
|
|
9
9
|
|
|
10
10
|
//#region package.json
|
|
11
11
|
var name = "@eslint-react/eslint-plugin";
|
|
12
|
-
var version = "2.1.0-next.
|
|
12
|
+
var version = "2.1.0-next.7";
|
|
13
13
|
|
|
14
14
|
//#endregion
|
|
15
15
|
//#region src/configs/dom.ts
|
|
16
16
|
var dom_exports = /* @__PURE__ */ __export({
|
|
17
17
|
name: () => name$16,
|
|
18
18
|
plugins: () => plugins$11,
|
|
19
|
-
rules: () => rules$
|
|
19
|
+
rules: () => rules$13
|
|
20
20
|
});
|
|
21
21
|
const name$16 = "@eslint-react/dom";
|
|
22
|
-
const rules$
|
|
22
|
+
const rules$13 = {
|
|
23
23
|
"@eslint-react/dom/no-dangerously-set-innerhtml": "warn",
|
|
24
24
|
"@eslint-react/dom/no-dangerously-set-innerhtml-with-children": "error",
|
|
25
25
|
"@eslint-react/dom/no-find-dom-node": "error",
|
|
@@ -40,11 +40,11 @@ const plugins$11 = { "@eslint-react/dom": reactDom };
|
|
|
40
40
|
var x_exports = /* @__PURE__ */ __export({
|
|
41
41
|
name: () => name$15,
|
|
42
42
|
plugins: () => plugins$10,
|
|
43
|
-
rules: () => rules$
|
|
43
|
+
rules: () => rules$18,
|
|
44
44
|
settings: () => settings$8
|
|
45
45
|
});
|
|
46
46
|
const name$15 = "@eslint-react/x";
|
|
47
|
-
const rules$
|
|
47
|
+
const rules$18 = {
|
|
48
48
|
"@eslint-react/jsx-no-comment-textnodes": "warn",
|
|
49
49
|
"@eslint-react/jsx-no-duplicate-props": "warn",
|
|
50
50
|
"@eslint-react/jsx-uses-react": "warn",
|
|
@@ -93,11 +93,11 @@ const settings$8 = { "react-x": DEFAULT_ESLINT_REACT_SETTINGS };
|
|
|
93
93
|
var all_exports = /* @__PURE__ */ __export({
|
|
94
94
|
name: () => name$14,
|
|
95
95
|
plugins: () => plugins$9,
|
|
96
|
-
rules: () => rules$
|
|
96
|
+
rules: () => rules$7,
|
|
97
97
|
settings: () => settings$7
|
|
98
98
|
});
|
|
99
99
|
const name$14 = "@eslint-react/all";
|
|
100
|
-
const rules$
|
|
100
|
+
const rules$7 = {
|
|
101
101
|
"@eslint-react/jsx-key-before-spread": "warn",
|
|
102
102
|
"@eslint-react/jsx-no-comment-textnodes": "warn",
|
|
103
103
|
"@eslint-react/jsx-no-duplicate-props": "warn",
|
|
@@ -204,10 +204,10 @@ const settings$7 = { ...settings$8 };
|
|
|
204
204
|
var debug_exports = /* @__PURE__ */ __export({
|
|
205
205
|
name: () => name$13,
|
|
206
206
|
plugins: () => plugins$8,
|
|
207
|
-
rules: () => rules$
|
|
207
|
+
rules: () => rules$15
|
|
208
208
|
});
|
|
209
209
|
const name$13 = "@eslint-react/debug";
|
|
210
|
-
const rules$
|
|
210
|
+
const rules$15 = {
|
|
211
211
|
"@eslint-react/debug/class-component": "warn",
|
|
212
212
|
"@eslint-react/debug/function-component": "warn",
|
|
213
213
|
"@eslint-react/debug/hook": "warn",
|
|
@@ -220,7 +220,7 @@ const plugins$8 = { "@eslint-react/debug": reactDebug };
|
|
|
220
220
|
//#region src/configs/disable-conflict-eslint-plugin-react.ts
|
|
221
221
|
var disable_conflict_eslint_plugin_react_exports = /* @__PURE__ */ __export({
|
|
222
222
|
name: () => name$12,
|
|
223
|
-
rules: () => rules$
|
|
223
|
+
rules: () => rules$17
|
|
224
224
|
});
|
|
225
225
|
const conflictingRules = [
|
|
226
226
|
"button-has-type",
|
|
@@ -271,34 +271,34 @@ const conflictingRules = [
|
|
|
271
271
|
"void-dom-elements-no-children"
|
|
272
272
|
];
|
|
273
273
|
const name$12 = "@eslint-react/disable-conflict-eslint-plugin-react";
|
|
274
|
-
const rules$
|
|
274
|
+
const rules$17 = Object.fromEntries(conflictingRules.map((key) => [key, "off"]));
|
|
275
275
|
|
|
276
276
|
//#endregion
|
|
277
277
|
//#region src/configs/disable-debug.ts
|
|
278
278
|
var disable_debug_exports = /* @__PURE__ */ __export({
|
|
279
279
|
name: () => name$11,
|
|
280
|
-
rules: () => rules$
|
|
280
|
+
rules: () => rules$16
|
|
281
281
|
});
|
|
282
282
|
const name$11 = "@eslint-react/disable-debug";
|
|
283
|
-
const rules$
|
|
283
|
+
const rules$16 = Object.fromEntries(Object.entries(rules$15).map(([rule]) => [rule, "off"]));
|
|
284
284
|
|
|
285
285
|
//#endregion
|
|
286
286
|
//#region src/configs/disable-dom.ts
|
|
287
287
|
var disable_dom_exports = /* @__PURE__ */ __export({
|
|
288
288
|
name: () => name$10,
|
|
289
|
-
rules: () => rules$
|
|
289
|
+
rules: () => rules$14
|
|
290
290
|
});
|
|
291
291
|
const name$10 = "@eslint-react/disable-dom";
|
|
292
|
-
const rules$
|
|
292
|
+
const rules$14 = Object.fromEntries(Object.entries(rules$13).map(([key]) => [key, "off"]));
|
|
293
293
|
|
|
294
294
|
//#endregion
|
|
295
295
|
//#region src/configs/disable-type-checked.ts
|
|
296
296
|
var disable_type_checked_exports = /* @__PURE__ */ __export({
|
|
297
297
|
name: () => name$9,
|
|
298
|
-
rules: () => rules$
|
|
298
|
+
rules: () => rules$8
|
|
299
299
|
});
|
|
300
300
|
const name$9 = "@eslint-react/disable-type-checked";
|
|
301
|
-
const rules$
|
|
301
|
+
const rules$8 = {
|
|
302
302
|
"@eslint-react/no-leaked-conditional-rendering": "off",
|
|
303
303
|
"@eslint-react/no-unused-props": "off",
|
|
304
304
|
"@eslint-react/prefer-read-only-props": "off"
|
|
@@ -306,7 +306,7 @@ const rules$9 = {
|
|
|
306
306
|
|
|
307
307
|
//#endregion
|
|
308
308
|
//#region src/configs/web-api.ts
|
|
309
|
-
const rules$
|
|
309
|
+
const rules$11 = {
|
|
310
310
|
"@eslint-react/web-api/no-leaked-event-listener": "warn",
|
|
311
311
|
"@eslint-react/web-api/no-leaked-interval": "warn",
|
|
312
312
|
"@eslint-react/web-api/no-leaked-resize-observer": "warn",
|
|
@@ -319,20 +319,20 @@ const settings$6 = { ...settings$8 };
|
|
|
319
319
|
//#region src/configs/disable-web-api.ts
|
|
320
320
|
var disable_web_api_exports = /* @__PURE__ */ __export({
|
|
321
321
|
name: () => name$8,
|
|
322
|
-
rules: () => rules$
|
|
322
|
+
rules: () => rules$12
|
|
323
323
|
});
|
|
324
324
|
const name$8 = "@eslint-react/disable-web-api";
|
|
325
|
-
const rules$
|
|
325
|
+
const rules$12 = Object.fromEntries(Object.entries(rules$11).map(([key]) => [key, "off"]));
|
|
326
326
|
|
|
327
327
|
//#endregion
|
|
328
328
|
//#region src/configs/no-deprecated.ts
|
|
329
329
|
var no_deprecated_exports = /* @__PURE__ */ __export({
|
|
330
330
|
name: () => name$7,
|
|
331
331
|
plugins: () => plugins$6,
|
|
332
|
-
rules: () => rules$
|
|
332
|
+
rules: () => rules$10
|
|
333
333
|
});
|
|
334
334
|
const name$7 = "@eslint-react/no-deprecated";
|
|
335
|
-
const rules$
|
|
335
|
+
const rules$10 = {
|
|
336
336
|
"@eslint-react/no-component-will-mount": "error",
|
|
337
337
|
"@eslint-react/no-component-will-receive-props": "error",
|
|
338
338
|
"@eslint-react/no-component-will-update": "error",
|
|
@@ -352,12 +352,12 @@ const plugins$6 = {
|
|
|
352
352
|
//#region src/configs/off.ts
|
|
353
353
|
var off_exports = /* @__PURE__ */ __export({
|
|
354
354
|
name: () => name$6,
|
|
355
|
-
rules: () => rules$
|
|
355
|
+
rules: () => rules$9
|
|
356
356
|
});
|
|
357
357
|
const name$6 = "@eslint-react/off";
|
|
358
|
-
const rules$
|
|
359
|
-
...Object.fromEntries(Object.entries(rules$
|
|
360
|
-
...rules$
|
|
358
|
+
const rules$9 = {
|
|
359
|
+
...Object.fromEntries(Object.entries(rules$7).map(([key]) => [key, "off"])),
|
|
360
|
+
...rules$8
|
|
361
361
|
};
|
|
362
362
|
|
|
363
363
|
//#endregion
|
|
@@ -365,14 +365,14 @@ const rules$10 = {
|
|
|
365
365
|
var recommended_exports = /* @__PURE__ */ __export({
|
|
366
366
|
name: () => name$5,
|
|
367
367
|
plugins: () => plugins$5,
|
|
368
|
-
rules: () => rules$
|
|
368
|
+
rules: () => rules$6,
|
|
369
369
|
settings: () => settings$5
|
|
370
370
|
});
|
|
371
371
|
const name$5 = "@eslint-react/recommended";
|
|
372
|
-
const rules$
|
|
373
|
-
...rules$
|
|
374
|
-
...rules$
|
|
375
|
-
...rules$
|
|
372
|
+
const rules$6 = {
|
|
373
|
+
...rules$18,
|
|
374
|
+
...rules$13,
|
|
375
|
+
...rules$11,
|
|
376
376
|
"@eslint-react/hooks-extra/no-direct-set-state-in-use-effect": "warn",
|
|
377
377
|
"@eslint-react/naming-convention/context-name": "warn",
|
|
378
378
|
"@eslint-react/naming-convention/use-state": "warn"
|
|
@@ -387,15 +387,11 @@ const plugins$5 = {
|
|
|
387
387
|
};
|
|
388
388
|
const settings$5 = { ...settings$8 };
|
|
389
389
|
|
|
390
|
-
//#endregion
|
|
391
|
-
//#region src/configs/_tc.ts
|
|
392
|
-
const rules$6 = {
|
|
393
|
-
"@eslint-react/no-leaked-conditional-rendering": "warn",
|
|
394
|
-
"@eslint-react/no-unused-props": "warn"
|
|
395
|
-
};
|
|
396
|
-
|
|
397
390
|
//#endregion
|
|
398
391
|
//#region src/configs/_ts.ts
|
|
392
|
+
/**
|
|
393
|
+
* Disables rules that are already handled by TypeScript
|
|
394
|
+
*/
|
|
399
395
|
const rules$5 = {
|
|
400
396
|
"@eslint-react/dom/no-string-style-prop": "off",
|
|
401
397
|
"@eslint-react/dom/no-unknown-property": "off",
|
|
@@ -415,7 +411,7 @@ var recommended_typescript_exports = /* @__PURE__ */ __export({
|
|
|
415
411
|
});
|
|
416
412
|
const name$4 = "@eslint-react/recommended-typescript";
|
|
417
413
|
const rules$4 = {
|
|
418
|
-
...rules$
|
|
414
|
+
...rules$6,
|
|
419
415
|
...rules$5
|
|
420
416
|
};
|
|
421
417
|
const plugins$4 = { ...plugins$5 };
|
|
@@ -432,7 +428,7 @@ var recommended_type_checked_exports = /* @__PURE__ */ __export({
|
|
|
432
428
|
const name$3 = "@eslint-react/recommended-type-checked";
|
|
433
429
|
const rules$3 = {
|
|
434
430
|
...rules$4,
|
|
435
|
-
|
|
431
|
+
"@eslint-react/no-leaked-conditional-rendering": "error"
|
|
436
432
|
};
|
|
437
433
|
const plugins$3 = { ...plugins$4 };
|
|
438
434
|
const settings$3 = { ...settings$4 };
|
|
@@ -440,7 +436,7 @@ const settings$3 = { ...settings$4 };
|
|
|
440
436
|
//#endregion
|
|
441
437
|
//#region src/configs/strict.ts
|
|
442
438
|
const rules$2 = {
|
|
443
|
-
...rules$
|
|
439
|
+
...rules$6,
|
|
444
440
|
"@eslint-react/jsx-no-iife": "error",
|
|
445
441
|
"@eslint-react/no-children-prop": "warn",
|
|
446
442
|
"@eslint-react/no-class-component": "error",
|
|
@@ -488,7 +484,8 @@ var strict_type_checked_exports = /* @__PURE__ */ __export({
|
|
|
488
484
|
const name$1 = "@eslint-react/strict-type-checked";
|
|
489
485
|
const rules = {
|
|
490
486
|
...rules$1,
|
|
491
|
-
|
|
487
|
+
"@eslint-react/no-leaked-conditional-rendering": "error",
|
|
488
|
+
"@eslint-react/no-unused-props": "warn"
|
|
492
489
|
};
|
|
493
490
|
const plugins = { ...plugins$1 };
|
|
494
491
|
const settings = { ...settings$1 };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@eslint-react/eslint-plugin",
|
|
3
|
-
"version": "2.1.0-next.
|
|
3
|
+
"version": "2.1.0-next.7",
|
|
4
4
|
"description": "A unified plugin that combines all individual plugins from the eslint-react monorepo into one.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"react",
|
|
@@ -42,15 +42,15 @@
|
|
|
42
42
|
"@typescript-eslint/types": "^8.46.0",
|
|
43
43
|
"@typescript-eslint/utils": "^8.46.0",
|
|
44
44
|
"ts-api-utils": "^2.1.0",
|
|
45
|
-
"@eslint-react/
|
|
46
|
-
"
|
|
47
|
-
"@eslint-react/
|
|
48
|
-
"eslint-plugin-react-
|
|
49
|
-
"eslint-plugin-react-
|
|
50
|
-
"eslint-
|
|
51
|
-
"eslint-plugin-react-
|
|
52
|
-
"eslint-plugin-react-
|
|
53
|
-
"eslint-plugin-react-
|
|
45
|
+
"@eslint-react/eff": "2.1.0-next.7",
|
|
46
|
+
"eslint-plugin-react-debug": "2.1.0-next.7",
|
|
47
|
+
"@eslint-react/shared": "2.1.0-next.7",
|
|
48
|
+
"eslint-plugin-react-dom": "2.1.0-next.7",
|
|
49
|
+
"eslint-plugin-react-naming-convention": "2.1.0-next.7",
|
|
50
|
+
"@eslint-react/kit": "2.1.0-next.7",
|
|
51
|
+
"eslint-plugin-react-hooks-extra": "2.1.0-next.7",
|
|
52
|
+
"eslint-plugin-react-web-api": "2.1.0-next.7",
|
|
53
|
+
"eslint-plugin-react-x": "2.1.0-next.7"
|
|
54
54
|
},
|
|
55
55
|
"devDependencies": {
|
|
56
56
|
"tsdown": "^0.15.6",
|