@eslint-react/eslint-plugin 2.0.7-next.2 → 2.1.0-beta.0

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 CHANGED
@@ -25,6 +25,7 @@
25
25
  - [Benchmark](#benchmark)
26
26
  - [FAQ](#faq)
27
27
  - [Roadmap](#roadmap)
28
+ - [Disclaimer](#disclaimer)
28
29
  - [Contributing](#contributing)
29
30
  - [License](#license)
30
31
 
@@ -165,6 +166,10 @@ export default defineConfig([
165
166
 
166
167
  - [Milestone 3.0 ↗](https://eslint-react.xyz/docs/roadmap#milestone-30-tbd)
167
168
 
169
+ ## Disclaimer
170
+
171
+ ESLint React is not affiliated with Meta Corporation or [facebook/react](https://github.com/facebook/react) project or React team, nor is it endorsed or sponsored by them.
172
+
168
173
  ## Contributing
169
174
 
170
175
  Contributions are welcome!
package/dist/index.d.ts CHANGED
@@ -1,12 +1,12 @@
1
- import * as _eslint_react_kit4 from "@eslint-react/kit";
1
+ import * as _eslint_react_kit6 from "@eslint-react/kit";
2
2
  import { RuleConfig } from "@eslint-react/kit";
3
3
 
4
4
  //#region src/configs/all.d.ts
5
5
  declare namespace all_d_exports {
6
- export { name$12 as name, plugins$6 as plugins, rules$12 as rules, settings$5 as settings };
6
+ export { name$13 as name, plugins$7 as plugins, rules$13 as rules, settings$4 as settings };
7
7
  }
8
- declare const name$12 = "@eslint-react/all";
9
- declare const rules$12: {
8
+ declare const name$13 = "@eslint-react/all";
9
+ declare const rules$13: {
10
10
  readonly "@eslint-react/jsx-key-before-spread": "warn";
11
11
  readonly "@eslint-react/jsx-no-comment-textnodes": "warn";
12
12
  readonly "@eslint-react/jsx-no-duplicate-props": "warn";
@@ -98,21 +98,21 @@ declare const rules$12: {
98
98
  readonly "@eslint-react/naming-convention/filename-extension": "off";
99
99
  readonly "@eslint-react/naming-convention/use-state": "warn";
100
100
  };
101
- declare const plugins$6: {
101
+ declare const plugins$7: {
102
102
  "@eslint-react/debug": {
103
103
  configs: {
104
104
  all: {
105
105
  plugins: {};
106
106
  name?: string;
107
107
  rules?: Record<string, RuleConfig>;
108
- settings?: _eslint_react_kit4.SettingsConfig;
108
+ settings?: _eslint_react_kit6.SettingsConfig;
109
109
  };
110
110
  };
111
111
  meta: {
112
112
  name: string;
113
113
  version: string;
114
114
  };
115
- rules: Record<string, _eslint_react_kit4.CompatibleRule>;
115
+ rules: Record<string, _eslint_react_kit6.CompatibleRule>;
116
116
  };
117
117
  "@eslint-react/hooks-extra": {
118
118
  configs: {
@@ -120,14 +120,14 @@ declare const plugins$6: {
120
120
  plugins: {};
121
121
  name?: string;
122
122
  rules?: Record<string, RuleConfig>;
123
- settings?: _eslint_react_kit4.SettingsConfig;
123
+ settings?: _eslint_react_kit6.SettingsConfig;
124
124
  };
125
125
  };
126
126
  meta: {
127
127
  name: string;
128
128
  version: string;
129
129
  };
130
- rules: Record<string, _eslint_react_kit4.CompatibleRule>;
130
+ rules: Record<string, _eslint_react_kit6.CompatibleRule>;
131
131
  };
132
132
  "@eslint-react/naming-convention": {
133
133
  configs: {
@@ -135,14 +135,14 @@ declare const plugins$6: {
135
135
  plugins: {};
136
136
  name?: string;
137
137
  rules?: Record<string, RuleConfig>;
138
- settings?: _eslint_react_kit4.SettingsConfig;
138
+ settings?: _eslint_react_kit6.SettingsConfig;
139
139
  };
140
140
  };
141
141
  meta: {
142
142
  name: string;
143
143
  version: string;
144
144
  };
145
- rules: Record<string, _eslint_react_kit4.CompatibleRule>;
145
+ rules: Record<string, _eslint_react_kit6.CompatibleRule>;
146
146
  };
147
147
  "@eslint-react/web-api": {
148
148
  configs: {
@@ -150,14 +150,14 @@ declare const plugins$6: {
150
150
  plugins: {};
151
151
  name?: string;
152
152
  rules?: Record<string, RuleConfig>;
153
- settings?: _eslint_react_kit4.SettingsConfig;
153
+ settings?: _eslint_react_kit6.SettingsConfig;
154
154
  };
155
155
  };
156
156
  meta: {
157
157
  name: string;
158
158
  version: string;
159
159
  };
160
- rules: Record<string, _eslint_react_kit4.CompatibleRule>;
160
+ rules: Record<string, _eslint_react_kit6.CompatibleRule>;
161
161
  };
162
162
  "@eslint-react/dom": {
163
163
  configs: {
@@ -165,14 +165,14 @@ declare const plugins$6: {
165
165
  plugins: {};
166
166
  name?: string;
167
167
  rules?: Record<string, RuleConfig>;
168
- settings?: _eslint_react_kit4.SettingsConfig;
168
+ settings?: _eslint_react_kit6.SettingsConfig;
169
169
  };
170
170
  };
171
171
  meta: {
172
172
  name: string;
173
173
  version: string;
174
174
  };
175
- rules: Record<string, _eslint_react_kit4.CompatibleRule>;
175
+ rules: Record<string, _eslint_react_kit6.CompatibleRule>;
176
176
  };
177
177
  "@eslint-react": {
178
178
  configs: {
@@ -180,29 +180,29 @@ declare const plugins$6: {
180
180
  plugins: {};
181
181
  name?: string;
182
182
  rules?: Record<string, RuleConfig>;
183
- settings?: _eslint_react_kit4.SettingsConfig;
183
+ settings?: _eslint_react_kit6.SettingsConfig;
184
184
  };
185
185
  "recommended-type-checked": {
186
186
  plugins: {};
187
187
  name?: string;
188
188
  rules?: Record<string, RuleConfig>;
189
- settings?: _eslint_react_kit4.SettingsConfig;
189
+ settings?: _eslint_react_kit6.SettingsConfig;
190
190
  };
191
191
  "recommended-typescript": {
192
192
  plugins: {};
193
193
  name?: string;
194
194
  rules?: Record<string, RuleConfig>;
195
- settings?: _eslint_react_kit4.SettingsConfig;
195
+ settings?: _eslint_react_kit6.SettingsConfig;
196
196
  };
197
197
  };
198
198
  meta: {
199
199
  name: string;
200
200
  version: string;
201
201
  };
202
- rules: Record<string, _eslint_react_kit4.CompatibleRule>;
202
+ rules: Record<string, _eslint_react_kit6.CompatibleRule>;
203
203
  };
204
204
  };
205
- declare const settings$5: {
205
+ declare const settings$4: {
206
206
  "react-x": {
207
207
  readonly version: "detect";
208
208
  readonly importSource: "react";
@@ -210,63 +210,63 @@ declare const settings$5: {
210
210
  };
211
211
  };
212
212
  declare namespace debug_d_exports {
213
- export { name$11 as name, plugins$5 as plugins, rules$11 as rules };
213
+ export { name$12 as name, plugins$6 as plugins, rules$12 as rules };
214
214
  }
215
- declare const name$11 = "@eslint-react/debug";
216
- declare const rules$11: {
215
+ declare const name$12 = "@eslint-react/debug";
216
+ declare const rules$12: {
217
217
  readonly "@eslint-react/debug/class-component": "warn";
218
218
  readonly "@eslint-react/debug/function-component": "warn";
219
219
  readonly "@eslint-react/debug/hook": "warn";
220
220
  readonly "@eslint-react/debug/is-from-react": "warn";
221
221
  readonly "@eslint-react/debug/jsx": "warn";
222
222
  };
223
- declare const plugins$5: {
223
+ declare const plugins$6: {
224
224
  "@eslint-react/debug": {
225
225
  configs: {
226
226
  all: {
227
227
  plugins: {};
228
228
  name?: string;
229
229
  rules?: Record<string, RuleConfig>;
230
- settings?: _eslint_react_kit4.SettingsConfig;
230
+ settings?: _eslint_react_kit6.SettingsConfig;
231
231
  };
232
232
  };
233
233
  meta: {
234
234
  name: string;
235
235
  version: string;
236
236
  };
237
- rules: Record<string, _eslint_react_kit4.CompatibleRule>;
237
+ rules: Record<string, _eslint_react_kit6.CompatibleRule>;
238
238
  };
239
239
  };
240
240
  declare namespace disable_conflict_eslint_plugin_react_d_exports {
241
+ export { name$11 as name, rules$11 as rules };
242
+ }
243
+ declare const name$11 = "@eslint-react/disable-conflict-eslint-plugin-react";
244
+ declare const rules$11: Record<string, RuleConfig>;
245
+ declare namespace disable_debug_d_exports {
241
246
  export { name$10 as name, rules$10 as rules };
242
247
  }
243
- declare const name$10 = "@eslint-react/disable-conflict-eslint-plugin-react";
248
+ declare const name$10 = "@eslint-react/disable-debug";
244
249
  declare const rules$10: Record<string, RuleConfig>;
245
- declare namespace disable_debug_d_exports {
250
+ declare namespace disable_dom_d_exports {
246
251
  export { name$9 as name, rules$9 as rules };
247
252
  }
248
- declare const name$9 = "@eslint-react/disable-debug";
253
+ declare const name$9 = "@eslint-react/disable-dom";
249
254
  declare const rules$9: Record<string, RuleConfig>;
250
- declare namespace disable_dom_d_exports {
255
+ declare namespace disable_type_checked_d_exports {
251
256
  export { name$8 as name, rules$8 as rules };
252
257
  }
253
- declare const name$8 = "@eslint-react/disable-dom";
258
+ declare const name$8 = "@eslint-react/disable-type-checked";
254
259
  declare const rules$8: Record<string, RuleConfig>;
255
- declare namespace disable_type_checked_d_exports {
260
+ declare namespace disable_web_api_d_exports {
256
261
  export { name$7 as name, rules$7 as rules };
257
262
  }
258
- declare const name$7 = "@eslint-react/disable-type-checked";
263
+ declare const name$7 = "@eslint-react/disable-web-api";
259
264
  declare const rules$7: Record<string, RuleConfig>;
260
- declare namespace disable_web_api_d_exports {
261
- export { name$6 as name, rules$6 as rules };
262
- }
263
- declare const name$6 = "@eslint-react/disable-web-api";
264
- declare const rules$6: Record<string, RuleConfig>;
265
265
  declare namespace dom_d_exports {
266
- export { name$5 as name, plugins$4 as plugins, rules$5 as rules, settings$4 as settings };
266
+ export { name$6 as name, plugins$5 as plugins, rules$6 as rules };
267
267
  }
268
- declare const name$5 = "@eslint-react/dom";
269
- declare const rules$5: {
268
+ declare const name$6 = "@eslint-react/dom";
269
+ declare const rules$6: {
270
270
  readonly "@eslint-react/dom/no-dangerously-set-innerhtml": "warn";
271
271
  readonly "@eslint-react/dom/no-dangerously-set-innerhtml-with-children": "error";
272
272
  readonly "@eslint-react/dom/no-find-dom-node": "error";
@@ -283,28 +283,80 @@ declare const rules$5: {
283
283
  readonly "@eslint-react/dom/no-use-form-state": "error";
284
284
  readonly "@eslint-react/dom/no-void-elements-with-children": "error";
285
285
  };
286
- declare const plugins$4: {
286
+ declare const plugins$5: {
287
287
  "@eslint-react/dom": {
288
288
  configs: {
289
289
  recommended: {
290
290
  plugins: {};
291
291
  name?: string;
292
292
  rules?: Record<string, RuleConfig>;
293
- settings?: _eslint_react_kit4.SettingsConfig;
293
+ settings?: _eslint_react_kit6.SettingsConfig;
294
294
  };
295
295
  };
296
296
  meta: {
297
297
  name: string;
298
298
  version: string;
299
299
  };
300
- rules: Record<string, _eslint_react_kit4.CompatibleRule>;
300
+ rules: Record<string, _eslint_react_kit6.CompatibleRule>;
301
301
  };
302
302
  };
303
- declare const settings$4: {
304
- "react-x": {
305
- readonly version: "detect";
306
- readonly importSource: "react";
307
- readonly polymorphicPropName: "as";
303
+ declare namespace no_deprecated_d_exports {
304
+ export { name$5 as name, plugins$4 as plugins, rules$5 as rules };
305
+ }
306
+ declare const name$5 = "@eslint-react/no-deprecated";
307
+ declare const rules$5: {
308
+ readonly "@eslint-react/no-component-will-mount": "error";
309
+ readonly "@eslint-react/no-component-will-receive-props": "error";
310
+ readonly "@eslint-react/no-component-will-update": "error";
311
+ readonly "@eslint-react/no-create-ref": "error";
312
+ readonly "@eslint-react/no-forward-ref": "error";
313
+ readonly "@eslint-react/dom/no-find-dom-node": "error";
314
+ readonly "@eslint-react/dom/no-hydrate": "error";
315
+ readonly "@eslint-react/dom/no-render": "error";
316
+ readonly "@eslint-react/dom/no-render-return-value": "error";
317
+ };
318
+ declare const plugins$4: {
319
+ "@eslint-react/dom": {
320
+ configs: {
321
+ recommended: {
322
+ plugins: {};
323
+ name?: string;
324
+ rules?: Record<string, RuleConfig>;
325
+ settings?: _eslint_react_kit6.SettingsConfig;
326
+ };
327
+ };
328
+ meta: {
329
+ name: string;
330
+ version: string;
331
+ };
332
+ rules: Record<string, _eslint_react_kit6.CompatibleRule>;
333
+ };
334
+ "@eslint-react": {
335
+ configs: {
336
+ recommended: {
337
+ plugins: {};
338
+ name?: string;
339
+ rules?: Record<string, RuleConfig>;
340
+ settings?: _eslint_react_kit6.SettingsConfig;
341
+ };
342
+ "recommended-type-checked": {
343
+ plugins: {};
344
+ name?: string;
345
+ rules?: Record<string, RuleConfig>;
346
+ settings?: _eslint_react_kit6.SettingsConfig;
347
+ };
348
+ "recommended-typescript": {
349
+ plugins: {};
350
+ name?: string;
351
+ rules?: Record<string, RuleConfig>;
352
+ settings?: _eslint_react_kit6.SettingsConfig;
353
+ };
354
+ };
355
+ meta: {
356
+ name: string;
357
+ version: string;
358
+ };
359
+ rules: Record<string, _eslint_react_kit6.CompatibleRule>;
308
360
  };
309
361
  };
310
362
  declare namespace off_d_exports {
@@ -408,14 +460,14 @@ declare const plugins$3: {
408
460
  plugins: {};
409
461
  name?: string;
410
462
  rules?: Record<string, RuleConfig>;
411
- settings?: _eslint_react_kit4.SettingsConfig;
463
+ settings?: _eslint_react_kit6.SettingsConfig;
412
464
  };
413
465
  };
414
466
  meta: {
415
467
  name: string;
416
468
  version: string;
417
469
  };
418
- rules: Record<string, _eslint_react_kit4.CompatibleRule>;
470
+ rules: Record<string, _eslint_react_kit6.CompatibleRule>;
419
471
  };
420
472
  "@eslint-react/hooks-extra": {
421
473
  configs: {
@@ -423,14 +475,14 @@ declare const plugins$3: {
423
475
  plugins: {};
424
476
  name?: string;
425
477
  rules?: Record<string, RuleConfig>;
426
- settings?: _eslint_react_kit4.SettingsConfig;
478
+ settings?: _eslint_react_kit6.SettingsConfig;
427
479
  };
428
480
  };
429
481
  meta: {
430
482
  name: string;
431
483
  version: string;
432
484
  };
433
- rules: Record<string, _eslint_react_kit4.CompatibleRule>;
485
+ rules: Record<string, _eslint_react_kit6.CompatibleRule>;
434
486
  };
435
487
  "@eslint-react/naming-convention": {
436
488
  configs: {
@@ -438,14 +490,14 @@ declare const plugins$3: {
438
490
  plugins: {};
439
491
  name?: string;
440
492
  rules?: Record<string, RuleConfig>;
441
- settings?: _eslint_react_kit4.SettingsConfig;
493
+ settings?: _eslint_react_kit6.SettingsConfig;
442
494
  };
443
495
  };
444
496
  meta: {
445
497
  name: string;
446
498
  version: string;
447
499
  };
448
- rules: Record<string, _eslint_react_kit4.CompatibleRule>;
500
+ rules: Record<string, _eslint_react_kit6.CompatibleRule>;
449
501
  };
450
502
  "@eslint-react/web-api": {
451
503
  configs: {
@@ -453,14 +505,14 @@ declare const plugins$3: {
453
505
  plugins: {};
454
506
  name?: string;
455
507
  rules?: Record<string, RuleConfig>;
456
- settings?: _eslint_react_kit4.SettingsConfig;
508
+ settings?: _eslint_react_kit6.SettingsConfig;
457
509
  };
458
510
  };
459
511
  meta: {
460
512
  name: string;
461
513
  version: string;
462
514
  };
463
- rules: Record<string, _eslint_react_kit4.CompatibleRule>;
515
+ rules: Record<string, _eslint_react_kit6.CompatibleRule>;
464
516
  };
465
517
  "@eslint-react/dom": {
466
518
  configs: {
@@ -468,14 +520,14 @@ declare const plugins$3: {
468
520
  plugins: {};
469
521
  name?: string;
470
522
  rules?: Record<string, RuleConfig>;
471
- settings?: _eslint_react_kit4.SettingsConfig;
523
+ settings?: _eslint_react_kit6.SettingsConfig;
472
524
  };
473
525
  };
474
526
  meta: {
475
527
  name: string;
476
528
  version: string;
477
529
  };
478
- rules: Record<string, _eslint_react_kit4.CompatibleRule>;
530
+ rules: Record<string, _eslint_react_kit6.CompatibleRule>;
479
531
  };
480
532
  "@eslint-react": {
481
533
  configs: {
@@ -483,26 +535,26 @@ declare const plugins$3: {
483
535
  plugins: {};
484
536
  name?: string;
485
537
  rules?: Record<string, RuleConfig>;
486
- settings?: _eslint_react_kit4.SettingsConfig;
538
+ settings?: _eslint_react_kit6.SettingsConfig;
487
539
  };
488
540
  "recommended-type-checked": {
489
541
  plugins: {};
490
542
  name?: string;
491
543
  rules?: Record<string, RuleConfig>;
492
- settings?: _eslint_react_kit4.SettingsConfig;
544
+ settings?: _eslint_react_kit6.SettingsConfig;
493
545
  };
494
546
  "recommended-typescript": {
495
547
  plugins: {};
496
548
  name?: string;
497
549
  rules?: Record<string, RuleConfig>;
498
- settings?: _eslint_react_kit4.SettingsConfig;
550
+ settings?: _eslint_react_kit6.SettingsConfig;
499
551
  };
500
552
  };
501
553
  meta: {
502
554
  name: string;
503
555
  version: string;
504
556
  };
505
- rules: Record<string, _eslint_react_kit4.CompatibleRule>;
557
+ rules: Record<string, _eslint_react_kit6.CompatibleRule>;
506
558
  };
507
559
  };
508
560
  declare const settings$3: {
@@ -610,14 +662,14 @@ declare const plugins$2: {
610
662
  plugins: {};
611
663
  name?: string;
612
664
  rules?: Record<string, RuleConfig>;
613
- settings?: _eslint_react_kit4.SettingsConfig;
665
+ settings?: _eslint_react_kit6.SettingsConfig;
614
666
  };
615
667
  };
616
668
  meta: {
617
669
  name: string;
618
670
  version: string;
619
671
  };
620
- rules: Record<string, _eslint_react_kit4.CompatibleRule>;
672
+ rules: Record<string, _eslint_react_kit6.CompatibleRule>;
621
673
  };
622
674
  "@eslint-react/hooks-extra": {
623
675
  configs: {
@@ -625,14 +677,14 @@ declare const plugins$2: {
625
677
  plugins: {};
626
678
  name?: string;
627
679
  rules?: Record<string, RuleConfig>;
628
- settings?: _eslint_react_kit4.SettingsConfig;
680
+ settings?: _eslint_react_kit6.SettingsConfig;
629
681
  };
630
682
  };
631
683
  meta: {
632
684
  name: string;
633
685
  version: string;
634
686
  };
635
- rules: Record<string, _eslint_react_kit4.CompatibleRule>;
687
+ rules: Record<string, _eslint_react_kit6.CompatibleRule>;
636
688
  };
637
689
  "@eslint-react/naming-convention": {
638
690
  configs: {
@@ -640,14 +692,14 @@ declare const plugins$2: {
640
692
  plugins: {};
641
693
  name?: string;
642
694
  rules?: Record<string, RuleConfig>;
643
- settings?: _eslint_react_kit4.SettingsConfig;
695
+ settings?: _eslint_react_kit6.SettingsConfig;
644
696
  };
645
697
  };
646
698
  meta: {
647
699
  name: string;
648
700
  version: string;
649
701
  };
650
- rules: Record<string, _eslint_react_kit4.CompatibleRule>;
702
+ rules: Record<string, _eslint_react_kit6.CompatibleRule>;
651
703
  };
652
704
  "@eslint-react/web-api": {
653
705
  configs: {
@@ -655,14 +707,14 @@ declare const plugins$2: {
655
707
  plugins: {};
656
708
  name?: string;
657
709
  rules?: Record<string, RuleConfig>;
658
- settings?: _eslint_react_kit4.SettingsConfig;
710
+ settings?: _eslint_react_kit6.SettingsConfig;
659
711
  };
660
712
  };
661
713
  meta: {
662
714
  name: string;
663
715
  version: string;
664
716
  };
665
- rules: Record<string, _eslint_react_kit4.CompatibleRule>;
717
+ rules: Record<string, _eslint_react_kit6.CompatibleRule>;
666
718
  };
667
719
  "@eslint-react/dom": {
668
720
  configs: {
@@ -670,14 +722,14 @@ declare const plugins$2: {
670
722
  plugins: {};
671
723
  name?: string;
672
724
  rules?: Record<string, RuleConfig>;
673
- settings?: _eslint_react_kit4.SettingsConfig;
725
+ settings?: _eslint_react_kit6.SettingsConfig;
674
726
  };
675
727
  };
676
728
  meta: {
677
729
  name: string;
678
730
  version: string;
679
731
  };
680
- rules: Record<string, _eslint_react_kit4.CompatibleRule>;
732
+ rules: Record<string, _eslint_react_kit6.CompatibleRule>;
681
733
  };
682
734
  "@eslint-react": {
683
735
  configs: {
@@ -685,26 +737,26 @@ declare const plugins$2: {
685
737
  plugins: {};
686
738
  name?: string;
687
739
  rules?: Record<string, RuleConfig>;
688
- settings?: _eslint_react_kit4.SettingsConfig;
740
+ settings?: _eslint_react_kit6.SettingsConfig;
689
741
  };
690
742
  "recommended-type-checked": {
691
743
  plugins: {};
692
744
  name?: string;
693
745
  rules?: Record<string, RuleConfig>;
694
- settings?: _eslint_react_kit4.SettingsConfig;
746
+ settings?: _eslint_react_kit6.SettingsConfig;
695
747
  };
696
748
  "recommended-typescript": {
697
749
  plugins: {};
698
750
  name?: string;
699
751
  rules?: Record<string, RuleConfig>;
700
- settings?: _eslint_react_kit4.SettingsConfig;
752
+ settings?: _eslint_react_kit6.SettingsConfig;
701
753
  };
702
754
  };
703
755
  meta: {
704
756
  name: string;
705
757
  version: string;
706
758
  };
707
- rules: Record<string, _eslint_react_kit4.CompatibleRule>;
759
+ rules: Record<string, _eslint_react_kit6.CompatibleRule>;
708
760
  };
709
761
  };
710
762
  declare const settings$2: {
@@ -812,14 +864,14 @@ declare const plugins$1: {
812
864
  plugins: {};
813
865
  name?: string;
814
866
  rules?: Record<string, RuleConfig>;
815
- settings?: _eslint_react_kit4.SettingsConfig;
867
+ settings?: _eslint_react_kit6.SettingsConfig;
816
868
  };
817
869
  };
818
870
  meta: {
819
871
  name: string;
820
872
  version: string;
821
873
  };
822
- rules: Record<string, _eslint_react_kit4.CompatibleRule>;
874
+ rules: Record<string, _eslint_react_kit6.CompatibleRule>;
823
875
  };
824
876
  "@eslint-react/hooks-extra": {
825
877
  configs: {
@@ -827,14 +879,14 @@ declare const plugins$1: {
827
879
  plugins: {};
828
880
  name?: string;
829
881
  rules?: Record<string, RuleConfig>;
830
- settings?: _eslint_react_kit4.SettingsConfig;
882
+ settings?: _eslint_react_kit6.SettingsConfig;
831
883
  };
832
884
  };
833
885
  meta: {
834
886
  name: string;
835
887
  version: string;
836
888
  };
837
- rules: Record<string, _eslint_react_kit4.CompatibleRule>;
889
+ rules: Record<string, _eslint_react_kit6.CompatibleRule>;
838
890
  };
839
891
  "@eslint-react/naming-convention": {
840
892
  configs: {
@@ -842,14 +894,14 @@ declare const plugins$1: {
842
894
  plugins: {};
843
895
  name?: string;
844
896
  rules?: Record<string, RuleConfig>;
845
- settings?: _eslint_react_kit4.SettingsConfig;
897
+ settings?: _eslint_react_kit6.SettingsConfig;
846
898
  };
847
899
  };
848
900
  meta: {
849
901
  name: string;
850
902
  version: string;
851
903
  };
852
- rules: Record<string, _eslint_react_kit4.CompatibleRule>;
904
+ rules: Record<string, _eslint_react_kit6.CompatibleRule>;
853
905
  };
854
906
  "@eslint-react/web-api": {
855
907
  configs: {
@@ -857,14 +909,14 @@ declare const plugins$1: {
857
909
  plugins: {};
858
910
  name?: string;
859
911
  rules?: Record<string, RuleConfig>;
860
- settings?: _eslint_react_kit4.SettingsConfig;
912
+ settings?: _eslint_react_kit6.SettingsConfig;
861
913
  };
862
914
  };
863
915
  meta: {
864
916
  name: string;
865
917
  version: string;
866
918
  };
867
- rules: Record<string, _eslint_react_kit4.CompatibleRule>;
919
+ rules: Record<string, _eslint_react_kit6.CompatibleRule>;
868
920
  };
869
921
  "@eslint-react/dom": {
870
922
  configs: {
@@ -872,14 +924,14 @@ declare const plugins$1: {
872
924
  plugins: {};
873
925
  name?: string;
874
926
  rules?: Record<string, RuleConfig>;
875
- settings?: _eslint_react_kit4.SettingsConfig;
927
+ settings?: _eslint_react_kit6.SettingsConfig;
876
928
  };
877
929
  };
878
930
  meta: {
879
931
  name: string;
880
932
  version: string;
881
933
  };
882
- rules: Record<string, _eslint_react_kit4.CompatibleRule>;
934
+ rules: Record<string, _eslint_react_kit6.CompatibleRule>;
883
935
  };
884
936
  "@eslint-react": {
885
937
  configs: {
@@ -887,26 +939,26 @@ declare const plugins$1: {
887
939
  plugins: {};
888
940
  name?: string;
889
941
  rules?: Record<string, RuleConfig>;
890
- settings?: _eslint_react_kit4.SettingsConfig;
942
+ settings?: _eslint_react_kit6.SettingsConfig;
891
943
  };
892
944
  "recommended-type-checked": {
893
945
  plugins: {};
894
946
  name?: string;
895
947
  rules?: Record<string, RuleConfig>;
896
- settings?: _eslint_react_kit4.SettingsConfig;
948
+ settings?: _eslint_react_kit6.SettingsConfig;
897
949
  };
898
950
  "recommended-typescript": {
899
951
  plugins: {};
900
952
  name?: string;
901
953
  rules?: Record<string, RuleConfig>;
902
- settings?: _eslint_react_kit4.SettingsConfig;
954
+ settings?: _eslint_react_kit6.SettingsConfig;
903
955
  };
904
956
  };
905
957
  meta: {
906
958
  name: string;
907
959
  version: string;
908
960
  };
909
- rules: Record<string, _eslint_react_kit4.CompatibleRule>;
961
+ rules: Record<string, _eslint_react_kit6.CompatibleRule>;
910
962
  };
911
963
  };
912
964
  declare const settings$1: {
@@ -990,26 +1042,26 @@ declare const plugins: {
990
1042
  plugins: {};
991
1043
  name?: string;
992
1044
  rules?: Record<string, RuleConfig>;
993
- settings?: _eslint_react_kit4.SettingsConfig;
1045
+ settings?: _eslint_react_kit6.SettingsConfig;
994
1046
  };
995
1047
  "recommended-type-checked": {
996
1048
  plugins: {};
997
1049
  name?: string;
998
1050
  rules?: Record<string, RuleConfig>;
999
- settings?: _eslint_react_kit4.SettingsConfig;
1051
+ settings?: _eslint_react_kit6.SettingsConfig;
1000
1052
  };
1001
1053
  "recommended-typescript": {
1002
1054
  plugins: {};
1003
1055
  name?: string;
1004
1056
  rules?: Record<string, RuleConfig>;
1005
- settings?: _eslint_react_kit4.SettingsConfig;
1057
+ settings?: _eslint_react_kit6.SettingsConfig;
1006
1058
  };
1007
1059
  };
1008
1060
  meta: {
1009
1061
  name: string;
1010
1062
  version: string;
1011
1063
  };
1012
- rules: Record<string, _eslint_react_kit4.CompatibleRule>;
1064
+ rules: Record<string, _eslint_react_kit6.CompatibleRule>;
1013
1065
  };
1014
1066
  };
1015
1067
  declare const settings: {
@@ -1023,25 +1075,70 @@ declare const settings: {
1023
1075
  //#region src/index.d.ts
1024
1076
  declare const _default: {
1025
1077
  configs: {
1078
+ /**
1079
+ * Enable all rules in this plugin
1080
+ */
1026
1081
  all: typeof all_d_exports;
1082
+ /**
1083
+ * Enable debug rules
1084
+ */
1027
1085
  debug: typeof debug_d_exports;
1086
+ /**
1087
+ * Disable rules in `eslint-plugin-react` that conflict with rules in our plugins
1088
+ */
1028
1089
  "disable-conflict-eslint-plugin-react": typeof disable_conflict_eslint_plugin_react_d_exports;
1090
+ /**
1091
+ * Disable debug rules
1092
+ */
1029
1093
  "disable-debug": typeof disable_debug_d_exports;
1094
+ /**
1095
+ * Disable rules in the `dom` preset
1096
+ */
1030
1097
  "disable-dom": typeof disable_dom_d_exports;
1098
+ /**
1099
+ * Disable rules that require type information
1100
+ */
1031
1101
  "disable-type-checked": typeof disable_type_checked_d_exports;
1102
+ /**
1103
+ * Disable rules in the `web-api` preset
1104
+ */
1032
1105
  "disable-web-api": typeof disable_web_api_d_exports;
1106
+ /**
1107
+ * Enable rules for `"react-dom"`
1108
+ */
1033
1109
  dom: typeof dom_d_exports;
1110
+ /**
1111
+ * Enable all non-deprecated rules from the `x`, `dom`, and `web-api` presets
1112
+ * This preset sets the severity of these rules to `"error"`
1113
+ */
1114
+ "no-deprecated": typeof no_deprecated_d_exports;
1115
+ /**
1116
+ * Disable all rules in this plugin except for debug rules
1117
+ */
1034
1118
  off: typeof off_d_exports;
1119
+ /**
1120
+ * Enforce rules that are recommended by ESLint React for general purpose React + React DOM projects
1121
+ * This preset includes the `x`, `dom`, and `web-api` presets
1122
+ */
1035
1123
  recommended: typeof recommended_d_exports;
1124
+ /**
1125
+ * Same as the `recommended-typescript` preset but enables additional rules that require type information
1126
+ */
1036
1127
  "recommended-type-checked": typeof recommended_type_checked_d_exports;
1128
+ /**
1129
+ * Same as the `recommended` preset but disables rules that can be enforced by TypeScript
1130
+ */
1037
1131
  "recommended-typescript": typeof recommended_typescript_d_exports;
1132
+ /**
1133
+ * Enable rules for `"react"`
1134
+ */
1038
1135
  x: typeof x_d_exports;
1039
1136
  };
1040
1137
  meta: {
1041
1138
  name: string;
1042
1139
  version: string;
1043
1140
  };
1044
- rules: Record<string, _eslint_react_kit4.CompatibleRule>;
1141
+ rules: Record<string, _eslint_react_kit6.CompatibleRule>;
1045
1142
  };
1046
1143
  //#endregion
1047
1144
  export { _default as default };
package/dist/index.js CHANGED
@@ -9,18 +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.0.7-next.2";
12
+ var version = "2.1.0-beta.0";
13
13
 
14
14
  //#endregion
15
15
  //#region src/configs/dom.ts
16
16
  var dom_exports = /* @__PURE__ */ __export({
17
- name: () => name$13,
18
- plugins: () => plugins$7,
19
- rules: () => rules$8,
20
- settings: () => settings$6
17
+ name: () => name$14,
18
+ plugins: () => plugins$8,
19
+ rules: () => rules$9
21
20
  });
22
- const name$13 = "@eslint-react/dom";
23
- const rules$8 = {
21
+ const name$14 = "@eslint-react/dom";
22
+ const rules$9 = {
24
23
  "@eslint-react/dom/no-dangerously-set-innerhtml": "warn",
25
24
  "@eslint-react/dom/no-dangerously-set-innerhtml-with-children": "error",
26
25
  "@eslint-react/dom/no-find-dom-node": "error",
@@ -37,19 +36,18 @@ const rules$8 = {
37
36
  "@eslint-react/dom/no-use-form-state": "error",
38
37
  "@eslint-react/dom/no-void-elements-with-children": "error"
39
38
  };
40
- const plugins$7 = { "@eslint-react/dom": reactDom };
41
- const settings$6 = { "react-x": DEFAULT_ESLINT_REACT_SETTINGS };
39
+ const plugins$8 = { "@eslint-react/dom": reactDom };
42
40
 
43
41
  //#endregion
44
42
  //#region src/configs/x.ts
45
43
  var x_exports = /* @__PURE__ */ __export({
46
- name: () => name$12,
47
- plugins: () => plugins$6,
48
- rules: () => rules$13,
44
+ name: () => name$13,
45
+ plugins: () => plugins$7,
46
+ rules: () => rules$14,
49
47
  settings: () => settings$5
50
48
  });
51
- const name$12 = "@eslint-react/x";
52
- const rules$13 = {
49
+ const name$13 = "@eslint-react/x";
50
+ const rules$14 = {
53
51
  "@eslint-react/jsx-no-comment-textnodes": "warn",
54
52
  "@eslint-react/jsx-no-duplicate-props": "warn",
55
53
  "@eslint-react/jsx-no-iife": "off",
@@ -112,18 +110,18 @@ const rules$13 = {
112
110
  "@eslint-react/prefer-read-only-props": "off",
113
111
  "@eslint-react/prefer-use-state-lazy-initialization": "warn"
114
112
  };
115
- const plugins$6 = { "@eslint-react": react };
113
+ const plugins$7 = { "@eslint-react": react };
116
114
  const settings$5 = { "react-x": DEFAULT_ESLINT_REACT_SETTINGS };
117
115
 
118
116
  //#endregion
119
117
  //#region src/configs/all.ts
120
118
  var all_exports = /* @__PURE__ */ __export({
121
- name: () => name$11,
122
- plugins: () => plugins$5,
119
+ name: () => name$12,
120
+ plugins: () => plugins$6,
123
121
  rules: () => rules$3,
124
122
  settings: () => settings$4
125
123
  });
126
- const name$11 = "@eslint-react/all";
124
+ const name$12 = "@eslint-react/all";
127
125
  const rules$3 = {
128
126
  "@eslint-react/jsx-key-before-spread": "warn",
129
127
  "@eslint-react/jsx-no-comment-textnodes": "warn",
@@ -216,38 +214,38 @@ const rules$3 = {
216
214
  "@eslint-react/naming-convention/filename-extension": "off",
217
215
  "@eslint-react/naming-convention/use-state": "warn"
218
216
  };
219
- const plugins$5 = {
220
- ...plugins$6,
217
+ const plugins$6 = {
221
218
  ...plugins$7,
219
+ ...plugins$8,
222
220
  "@eslint-react/debug": reactDebug,
223
221
  "@eslint-react/hooks-extra": reactHooksExtra,
224
222
  "@eslint-react/naming-convention": reactNamingConvention,
225
223
  "@eslint-react/web-api": reactWebApi
226
224
  };
227
- const settings$4 = { ...settings$6 };
225
+ const settings$4 = { ...settings$5 };
228
226
 
229
227
  //#endregion
230
228
  //#region src/configs/debug.ts
231
229
  var debug_exports = /* @__PURE__ */ __export({
232
- name: () => name$10,
233
- plugins: () => plugins$4,
234
- rules: () => rules$10
230
+ name: () => name$11,
231
+ plugins: () => plugins$5,
232
+ rules: () => rules$11
235
233
  });
236
- const name$10 = "@eslint-react/debug";
237
- const rules$10 = {
234
+ const name$11 = "@eslint-react/debug";
235
+ const rules$11 = {
238
236
  "@eslint-react/debug/class-component": "warn",
239
237
  "@eslint-react/debug/function-component": "warn",
240
238
  "@eslint-react/debug/hook": "warn",
241
239
  "@eslint-react/debug/is-from-react": "warn",
242
240
  "@eslint-react/debug/jsx": "warn"
243
241
  };
244
- const plugins$4 = { "@eslint-react/debug": reactDebug };
242
+ const plugins$5 = { "@eslint-react/debug": reactDebug };
245
243
 
246
244
  //#endregion
247
245
  //#region src/configs/disable-conflict-eslint-plugin-react.ts
248
246
  var disable_conflict_eslint_plugin_react_exports = /* @__PURE__ */ __export({
249
- name: () => name$9,
250
- rules: () => rules$12
247
+ name: () => name$10,
248
+ rules: () => rules$13
251
249
  });
252
250
  const conflictingRules = [
253
251
  "button-has-type",
@@ -297,34 +295,34 @@ const conflictingRules = [
297
295
  "prop-types",
298
296
  "void-dom-elements-no-children"
299
297
  ];
300
- const name$9 = "@eslint-react/disable-conflict-eslint-plugin-react";
301
- const rules$12 = Object.fromEntries(conflictingRules.map((key) => [key, "off"]));
298
+ const name$10 = "@eslint-react/disable-conflict-eslint-plugin-react";
299
+ const rules$13 = Object.fromEntries(conflictingRules.map((key) => [key, "off"]));
302
300
 
303
301
  //#endregion
304
302
  //#region src/configs/disable-debug.ts
305
303
  var disable_debug_exports = /* @__PURE__ */ __export({
306
- name: () => name$8,
307
- rules: () => rules$11
304
+ name: () => name$9,
305
+ rules: () => rules$12
308
306
  });
309
- const name$8 = "@eslint-react/disable-debug";
310
- const rules$11 = Object.fromEntries(Object.entries(rules$10).map(([rule]) => [rule, "off"]));
307
+ const name$9 = "@eslint-react/disable-debug";
308
+ const rules$12 = Object.fromEntries(Object.entries(rules$11).map(([rule]) => [rule, "off"]));
311
309
 
312
310
  //#endregion
313
311
  //#region src/configs/disable-dom.ts
314
312
  var disable_dom_exports = /* @__PURE__ */ __export({
315
- name: () => name$7,
316
- rules: () => rules$9
313
+ name: () => name$8,
314
+ rules: () => rules$10
317
315
  });
318
- const name$7 = "@eslint-react/disable-dom";
319
- const rules$9 = Object.fromEntries(Object.entries(rules$8).map(([key]) => [key, "off"]));
316
+ const name$8 = "@eslint-react/disable-dom";
317
+ const rules$10 = Object.fromEntries(Object.entries(rules$9).map(([key]) => [key, "off"]));
320
318
 
321
319
  //#endregion
322
320
  //#region src/configs/disable-type-checked.ts
323
321
  var disable_type_checked_exports = /* @__PURE__ */ __export({
324
- name: () => name$6,
322
+ name: () => name$7,
325
323
  rules: () => rules$4
326
324
  });
327
- const name$6 = "@eslint-react/disable-type-checked";
325
+ const name$7 = "@eslint-react/disable-type-checked";
328
326
  const rules$4 = {
329
327
  "@eslint-react/no-leaked-conditional-rendering": "off",
330
328
  "@eslint-react/no-unused-props": "off",
@@ -333,23 +331,47 @@ const rules$4 = {
333
331
 
334
332
  //#endregion
335
333
  //#region src/configs/web-api.ts
336
- const rules$6 = {
334
+ const rules$7 = {
337
335
  "@eslint-react/web-api/no-leaked-event-listener": "warn",
338
336
  "@eslint-react/web-api/no-leaked-interval": "warn",
339
337
  "@eslint-react/web-api/no-leaked-resize-observer": "warn",
340
338
  "@eslint-react/web-api/no-leaked-timeout": "warn"
341
339
  };
342
- const plugins$3 = { "@eslint-react/web-api": reactWebApi };
343
- const settings$3 = { ...settings$6 };
340
+ const plugins$4 = { "@eslint-react/web-api": reactWebApi };
341
+ const settings$3 = { ...settings$5 };
344
342
 
345
343
  //#endregion
346
344
  //#region src/configs/disable-web-api.ts
347
345
  var disable_web_api_exports = /* @__PURE__ */ __export({
346
+ name: () => name$6,
347
+ rules: () => rules$8
348
+ });
349
+ const name$6 = "@eslint-react/disable-web-api";
350
+ const rules$8 = Object.fromEntries(Object.entries(rules$7).map(([key]) => [key, "off"]));
351
+
352
+ //#endregion
353
+ //#region src/configs/no-deprecated.ts
354
+ var no_deprecated_exports = /* @__PURE__ */ __export({
348
355
  name: () => name$5,
349
- rules: () => rules$7
356
+ plugins: () => plugins$3,
357
+ rules: () => rules$6
350
358
  });
351
- const name$5 = "@eslint-react/disable-web-api";
352
- const rules$7 = Object.fromEntries(Object.entries(rules$6).map(([key]) => [key, "off"]));
359
+ const name$5 = "@eslint-react/no-deprecated";
360
+ const rules$6 = {
361
+ "@eslint-react/no-component-will-mount": "error",
362
+ "@eslint-react/no-component-will-receive-props": "error",
363
+ "@eslint-react/no-component-will-update": "error",
364
+ "@eslint-react/no-create-ref": "error",
365
+ "@eslint-react/no-forward-ref": "error",
366
+ "@eslint-react/dom/no-find-dom-node": "error",
367
+ "@eslint-react/dom/no-hydrate": "error",
368
+ "@eslint-react/dom/no-render": "error",
369
+ "@eslint-react/dom/no-render-return-value": "error"
370
+ };
371
+ const plugins$3 = {
372
+ ...plugins$7,
373
+ ...plugins$8
374
+ };
353
375
 
354
376
  //#endregion
355
377
  //#region src/configs/off.ts
@@ -373,22 +395,22 @@ var recommended_exports = /* @__PURE__ */ __export({
373
395
  });
374
396
  const name$3 = "@eslint-react/recommended";
375
397
  const rules$2 = {
376
- ...rules$13,
377
- ...rules$8,
378
- ...rules$6,
398
+ ...rules$14,
399
+ ...rules$9,
400
+ ...rules$7,
379
401
  "@eslint-react/hooks-extra/no-direct-set-state-in-use-effect": "warn",
380
402
  "@eslint-react/naming-convention/context-name": "warn",
381
403
  "@eslint-react/naming-convention/use-state": "warn"
382
404
  };
383
405
  const plugins$2 = {
384
- ...plugins$6,
385
406
  ...plugins$7,
386
- ...plugins$3,
407
+ ...plugins$8,
408
+ ...plugins$4,
387
409
  "@eslint-react/debug": reactDebug,
388
410
  "@eslint-react/hooks-extra": reactHooksExtra,
389
411
  "@eslint-react/naming-convention": reactNamingConvention
390
412
  };
391
- const settings$2 = { ...settings$6 };
413
+ const settings$2 = { ...settings$5 };
392
414
 
393
415
  //#endregion
394
416
  //#region src/configs/recommended-typescript.ts
@@ -490,6 +512,7 @@ var src_default = {
490
512
  ["disable-type-checked"]: disable_type_checked_exports,
491
513
  ["disable-web-api"]: disable_web_api_exports,
492
514
  ["dom"]: dom_exports,
515
+ ["no-deprecated"]: no_deprecated_exports,
493
516
  ["off"]: off_exports,
494
517
  ["recommended"]: recommended_exports,
495
518
  ["recommended-type-checked"]: recommended_type_checked_exports,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eslint-react/eslint-plugin",
3
- "version": "2.0.7-next.2",
3
+ "version": "2.1.0-beta.0",
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/eff": "2.0.7-next.2",
46
- "@eslint-react/kit": "2.0.7-next.2",
47
- "@eslint-react/shared": "2.0.7-next.2",
48
- "eslint-plugin-react-dom": "2.0.7-next.2",
49
- "eslint-plugin-react-hooks-extra": "2.0.7-next.2",
50
- "eslint-plugin-react-naming-convention": "2.0.7-next.2",
51
- "eslint-plugin-react-web-api": "2.0.7-next.2",
52
- "eslint-plugin-react-debug": "2.0.7-next.2",
53
- "eslint-plugin-react-x": "2.0.7-next.2"
45
+ "@eslint-react/eff": "2.1.0-beta.0",
46
+ "@eslint-react/kit": "2.1.0-beta.0",
47
+ "@eslint-react/shared": "2.1.0-beta.0",
48
+ "eslint-plugin-react-debug": "2.1.0-beta.0",
49
+ "eslint-plugin-react-dom": "2.1.0-beta.0",
50
+ "eslint-plugin-react-hooks-extra": "2.1.0-beta.0",
51
+ "eslint-plugin-react-naming-convention": "2.1.0-beta.0",
52
+ "eslint-plugin-react-x": "2.1.0-beta.0",
53
+ "eslint-plugin-react-web-api": "2.1.0-beta.0"
54
54
  },
55
55
  "devDependencies": {
56
56
  "tsdown": "^0.15.6",