@eslint-react/eslint-plugin 1.20.0-beta.2 → 1.20.0-beta.9

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
@@ -72,15 +72,8 @@ export default [
72
72
 
73
73
  ### Flat Config
74
74
 
75
- - **core**\
76
- Enable rules that are renderer-agnostic.
77
- - **dom**\
78
- Enable rules that are specific to React DOM.
79
- - **web-api**\
80
- Enable rules for interacting with Web APIs.
81
75
  - **recommended**\
82
- Enable rules that are recommended by ESLint React.\
83
- _This preset includes the `core`, `dom`, and `web-api` presets._
76
+ Enable rules that are recommended by ESLint React.
84
77
  - **recommended-typescript**\
85
78
  Enable rules that are recommended by ESLint React and disable rules that can be covered by TypeScript.\
86
79
  _This preset includes the `recommended` preset._
package/dist/index.d.mts CHANGED
@@ -141,7 +141,6 @@ declare const plugins$6: {
141
141
  "no-leaked-resize-observer": _typescript_eslint_utils_ts_eslint.RuleModule<"noLeakedResizeObserver" | "noLeakedResizeObserverInControlFlow" | "noLeakedResizeObserverNoFloatingInstance", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
142
142
  "no-leaked-timeout": _typescript_eslint_utils_ts_eslint.RuleModule<"noLeakedTimeoutInEffect" | "noLeakedTimeoutInLifecycle" | "noLeakedTimeoutNoTimeoutId", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
143
143
  };
144
- DEFAULT_ESLINT_REACT_SETTINGS: {};
145
144
  };
146
145
  "@eslint-react/dom": {
147
146
  readonly meta: {
@@ -162,16 +161,6 @@ declare const plugins$6: {
162
161
  readonly "no-unsafe-iframe-sandbox": _typescript_eslint_utils_ts_eslint.RuleModule<"noUnsafeIframeSandbox", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
163
162
  readonly "no-unsafe-target-blank": _typescript_eslint_utils_ts_eslint.RuleModule<"noUnsafeTargetBlank", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
164
163
  };
165
- readonly DEFAULT_ESLINT_REACT_SETTINGS: {
166
- readonly additionalComponents: [{
167
- readonly name: "Link";
168
- readonly as: "a";
169
- readonly attributes: [{
170
- readonly name: "to";
171
- readonly as: "href";
172
- }];
173
- }];
174
- };
175
164
  };
176
165
  "@eslint-react": {
177
166
  meta: {
@@ -233,26 +222,16 @@ declare const plugins$6: {
233
222
  "prefer-shorthand-fragment": _typescript_eslint_utils_ts_eslint.RuleModule<"preferShorthandFragment", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
234
223
  "no-complicated-conditional-rendering": _typescript_eslint_utils_ts_eslint.RuleModule<"noComplexConditionalRendering", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
235
224
  };
236
- DEFAULT_ESLINT_REACT_SETTINGS: {
237
- readonly additionalHooks: {
238
- readonly useLayoutEffect: ["useIsomorphicLayoutEffect"];
239
- };
240
- readonly polymorphicPropName: "as";
241
- readonly strictImportCheck: true;
242
- readonly version: "detect";
243
- };
244
225
  };
245
226
  };
246
227
  declare const settings$5: {
247
228
  "react-x": {
248
- readonly additionalComponents: [{
249
- readonly name: "Link";
250
- readonly as: "a";
251
- readonly attributes: [{
252
- readonly name: "to";
253
- readonly as: "href";
254
- }];
255
- }];
229
+ readonly additionalHooks: {
230
+ readonly useLayoutEffect: ["useIsomorphicLayoutEffect"];
231
+ };
232
+ readonly polymorphicPropName: "as";
233
+ readonly strictImportCheck: false;
234
+ readonly version: "detect";
256
235
  };
257
236
  };
258
237
 
@@ -361,14 +340,6 @@ declare const plugins$5: {
361
340
  "prefer-shorthand-fragment": _typescript_eslint_utils_ts_eslint.RuleModule<"preferShorthandFragment", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
362
341
  "no-complicated-conditional-rendering": _typescript_eslint_utils_ts_eslint.RuleModule<"noComplexConditionalRendering", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
363
342
  };
364
- DEFAULT_ESLINT_REACT_SETTINGS: {
365
- readonly additionalHooks: {
366
- readonly useLayoutEffect: ["useIsomorphicLayoutEffect"];
367
- };
368
- readonly polymorphicPropName: "as";
369
- readonly strictImportCheck: true;
370
- readonly version: "detect";
371
- };
372
343
  };
373
344
  };
374
345
  declare const settings$4: {
@@ -377,7 +348,7 @@ declare const settings$4: {
377
348
  readonly useLayoutEffect: ["useIsomorphicLayoutEffect"];
378
349
  };
379
350
  readonly polymorphicPropName: "as";
380
- readonly strictImportCheck: true;
351
+ readonly strictImportCheck: false;
381
352
  readonly version: "detect";
382
353
  };
383
354
  };
@@ -500,28 +471,16 @@ declare const plugins$3: {
500
471
  readonly "no-unsafe-iframe-sandbox": _typescript_eslint_utils_ts_eslint.RuleModule<"noUnsafeIframeSandbox", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
501
472
  readonly "no-unsafe-target-blank": _typescript_eslint_utils_ts_eslint.RuleModule<"noUnsafeTargetBlank", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
502
473
  };
503
- readonly DEFAULT_ESLINT_REACT_SETTINGS: {
504
- readonly additionalComponents: [{
505
- readonly name: "Link";
506
- readonly as: "a";
507
- readonly attributes: [{
508
- readonly name: "to";
509
- readonly as: "href";
510
- }];
511
- }];
512
- };
513
474
  };
514
475
  };
515
476
  declare const settings$3: {
516
477
  "react-x": {
517
- readonly additionalComponents: [{
518
- readonly name: "Link";
519
- readonly as: "a";
520
- readonly attributes: [{
521
- readonly name: "to";
522
- readonly as: "href";
523
- }];
524
- }];
478
+ readonly additionalHooks: {
479
+ readonly useLayoutEffect: ["useIsomorphicLayoutEffect"];
480
+ };
481
+ readonly polymorphicPropName: "as";
482
+ readonly strictImportCheck: false;
483
+ readonly version: "detect";
525
484
  };
526
485
  };
527
486
 
@@ -735,7 +694,6 @@ declare const plugins$2: {
735
694
  "no-leaked-resize-observer": _typescript_eslint_utils_ts_eslint.RuleModule<"noLeakedResizeObserver" | "noLeakedResizeObserverInControlFlow" | "noLeakedResizeObserverNoFloatingInstance", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
736
695
  "no-leaked-timeout": _typescript_eslint_utils_ts_eslint.RuleModule<"noLeakedTimeoutInEffect" | "noLeakedTimeoutInLifecycle" | "noLeakedTimeoutNoTimeoutId", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
737
696
  };
738
- DEFAULT_ESLINT_REACT_SETTINGS: {};
739
697
  };
740
698
  "@eslint-react/dom": {
741
699
  readonly meta: {
@@ -756,16 +714,6 @@ declare const plugins$2: {
756
714
  readonly "no-unsafe-iframe-sandbox": _typescript_eslint_utils_ts_eslint.RuleModule<"noUnsafeIframeSandbox", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
757
715
  readonly "no-unsafe-target-blank": _typescript_eslint_utils_ts_eslint.RuleModule<"noUnsafeTargetBlank", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
758
716
  };
759
- readonly DEFAULT_ESLINT_REACT_SETTINGS: {
760
- readonly additionalComponents: [{
761
- readonly name: "Link";
762
- readonly as: "a";
763
- readonly attributes: [{
764
- readonly name: "to";
765
- readonly as: "href";
766
- }];
767
- }];
768
- };
769
717
  };
770
718
  "@eslint-react": {
771
719
  meta: {
@@ -827,26 +775,16 @@ declare const plugins$2: {
827
775
  "prefer-shorthand-fragment": _typescript_eslint_utils_ts_eslint.RuleModule<"preferShorthandFragment", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
828
776
  "no-complicated-conditional-rendering": _typescript_eslint_utils_ts_eslint.RuleModule<"noComplexConditionalRendering", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
829
777
  };
830
- DEFAULT_ESLINT_REACT_SETTINGS: {
831
- readonly additionalHooks: {
832
- readonly useLayoutEffect: ["useIsomorphicLayoutEffect"];
833
- };
834
- readonly polymorphicPropName: "as";
835
- readonly strictImportCheck: true;
836
- readonly version: "detect";
837
- };
838
778
  };
839
779
  };
840
780
  declare const settings$2: {
841
781
  "react-x": {
842
- readonly additionalComponents: [{
843
- readonly name: "Link";
844
- readonly as: "a";
845
- readonly attributes: [{
846
- readonly name: "to";
847
- readonly as: "href";
848
- }];
849
- }];
782
+ readonly additionalHooks: {
783
+ readonly useLayoutEffect: ["useIsomorphicLayoutEffect"];
784
+ };
785
+ readonly polymorphicPropName: "as";
786
+ readonly strictImportCheck: false;
787
+ readonly version: "detect";
850
788
  };
851
789
  };
852
790
 
@@ -981,7 +919,6 @@ declare const plugins$1: {
981
919
  "no-leaked-resize-observer": _typescript_eslint_utils_ts_eslint.RuleModule<"noLeakedResizeObserver" | "noLeakedResizeObserverInControlFlow" | "noLeakedResizeObserverNoFloatingInstance", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
982
920
  "no-leaked-timeout": _typescript_eslint_utils_ts_eslint.RuleModule<"noLeakedTimeoutInEffect" | "noLeakedTimeoutInLifecycle" | "noLeakedTimeoutNoTimeoutId", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
983
921
  };
984
- DEFAULT_ESLINT_REACT_SETTINGS: {};
985
922
  };
986
923
  "@eslint-react/dom": {
987
924
  readonly meta: {
@@ -1002,16 +939,6 @@ declare const plugins$1: {
1002
939
  readonly "no-unsafe-iframe-sandbox": _typescript_eslint_utils_ts_eslint.RuleModule<"noUnsafeIframeSandbox", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
1003
940
  readonly "no-unsafe-target-blank": _typescript_eslint_utils_ts_eslint.RuleModule<"noUnsafeTargetBlank", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
1004
941
  };
1005
- readonly DEFAULT_ESLINT_REACT_SETTINGS: {
1006
- readonly additionalComponents: [{
1007
- readonly name: "Link";
1008
- readonly as: "a";
1009
- readonly attributes: [{
1010
- readonly name: "to";
1011
- readonly as: "href";
1012
- }];
1013
- }];
1014
- };
1015
942
  };
1016
943
  "@eslint-react": {
1017
944
  meta: {
@@ -1073,26 +1000,16 @@ declare const plugins$1: {
1073
1000
  "prefer-shorthand-fragment": _typescript_eslint_utils_ts_eslint.RuleModule<"preferShorthandFragment", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
1074
1001
  "no-complicated-conditional-rendering": _typescript_eslint_utils_ts_eslint.RuleModule<"noComplexConditionalRendering", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
1075
1002
  };
1076
- DEFAULT_ESLINT_REACT_SETTINGS: {
1077
- readonly additionalHooks: {
1078
- readonly useLayoutEffect: ["useIsomorphicLayoutEffect"];
1079
- };
1080
- readonly polymorphicPropName: "as";
1081
- readonly strictImportCheck: true;
1082
- readonly version: "detect";
1083
- };
1084
1003
  };
1085
1004
  };
1086
1005
  declare const settings$1: {
1087
1006
  "react-x": {
1088
- readonly additionalComponents: [{
1089
- readonly name: "Link";
1090
- readonly as: "a";
1091
- readonly attributes: [{
1092
- readonly name: "to";
1093
- readonly as: "href";
1094
- }];
1095
- }];
1007
+ readonly additionalHooks: {
1008
+ readonly useLayoutEffect: ["useIsomorphicLayoutEffect"];
1009
+ };
1010
+ readonly polymorphicPropName: "as";
1011
+ readonly strictImportCheck: false;
1012
+ readonly version: "detect";
1096
1013
  };
1097
1014
  };
1098
1015
 
@@ -1226,7 +1143,6 @@ declare const plugins: {
1226
1143
  "no-leaked-resize-observer": _typescript_eslint_utils_ts_eslint.RuleModule<"noLeakedResizeObserver" | "noLeakedResizeObserverInControlFlow" | "noLeakedResizeObserverNoFloatingInstance", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
1227
1144
  "no-leaked-timeout": _typescript_eslint_utils_ts_eslint.RuleModule<"noLeakedTimeoutInEffect" | "noLeakedTimeoutInLifecycle" | "noLeakedTimeoutNoTimeoutId", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
1228
1145
  };
1229
- DEFAULT_ESLINT_REACT_SETTINGS: {};
1230
1146
  };
1231
1147
  "@eslint-react/dom": {
1232
1148
  readonly meta: {
@@ -1247,16 +1163,6 @@ declare const plugins: {
1247
1163
  readonly "no-unsafe-iframe-sandbox": _typescript_eslint_utils_ts_eslint.RuleModule<"noUnsafeIframeSandbox", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
1248
1164
  readonly "no-unsafe-target-blank": _typescript_eslint_utils_ts_eslint.RuleModule<"noUnsafeTargetBlank", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
1249
1165
  };
1250
- readonly DEFAULT_ESLINT_REACT_SETTINGS: {
1251
- readonly additionalComponents: [{
1252
- readonly name: "Link";
1253
- readonly as: "a";
1254
- readonly attributes: [{
1255
- readonly name: "to";
1256
- readonly as: "href";
1257
- }];
1258
- }];
1259
- };
1260
1166
  };
1261
1167
  "@eslint-react": {
1262
1168
  meta: {
@@ -1318,26 +1224,16 @@ declare const plugins: {
1318
1224
  "prefer-shorthand-fragment": _typescript_eslint_utils_ts_eslint.RuleModule<"preferShorthandFragment", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
1319
1225
  "no-complicated-conditional-rendering": _typescript_eslint_utils_ts_eslint.RuleModule<"noComplexConditionalRendering", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
1320
1226
  };
1321
- DEFAULT_ESLINT_REACT_SETTINGS: {
1322
- readonly additionalHooks: {
1323
- readonly useLayoutEffect: ["useIsomorphicLayoutEffect"];
1324
- };
1325
- readonly polymorphicPropName: "as";
1326
- readonly strictImportCheck: true;
1327
- readonly version: "detect";
1328
- };
1329
1227
  };
1330
1228
  };
1331
1229
  declare const settings: {
1332
1230
  "react-x": {
1333
- readonly additionalComponents: [{
1334
- readonly name: "Link";
1335
- readonly as: "a";
1336
- readonly attributes: [{
1337
- readonly name: "to";
1338
- readonly as: "href";
1339
- }];
1340
- }];
1231
+ readonly additionalHooks: {
1232
+ readonly useLayoutEffect: ["useIsomorphicLayoutEffect"];
1233
+ };
1234
+ readonly polymorphicPropName: "as";
1235
+ readonly strictImportCheck: false;
1236
+ readonly version: "detect";
1341
1237
  };
1342
1238
  };
1343
1239
 
package/dist/index.d.ts CHANGED
@@ -141,7 +141,6 @@ declare const plugins$6: {
141
141
  "no-leaked-resize-observer": _typescript_eslint_utils_ts_eslint.RuleModule<"noLeakedResizeObserver" | "noLeakedResizeObserverInControlFlow" | "noLeakedResizeObserverNoFloatingInstance", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
142
142
  "no-leaked-timeout": _typescript_eslint_utils_ts_eslint.RuleModule<"noLeakedTimeoutInEffect" | "noLeakedTimeoutInLifecycle" | "noLeakedTimeoutNoTimeoutId", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
143
143
  };
144
- DEFAULT_ESLINT_REACT_SETTINGS: {};
145
144
  };
146
145
  "@eslint-react/dom": {
147
146
  readonly meta: {
@@ -162,16 +161,6 @@ declare const plugins$6: {
162
161
  readonly "no-unsafe-iframe-sandbox": _typescript_eslint_utils_ts_eslint.RuleModule<"noUnsafeIframeSandbox", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
163
162
  readonly "no-unsafe-target-blank": _typescript_eslint_utils_ts_eslint.RuleModule<"noUnsafeTargetBlank", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
164
163
  };
165
- readonly DEFAULT_ESLINT_REACT_SETTINGS: {
166
- readonly additionalComponents: [{
167
- readonly name: "Link";
168
- readonly as: "a";
169
- readonly attributes: [{
170
- readonly name: "to";
171
- readonly as: "href";
172
- }];
173
- }];
174
- };
175
164
  };
176
165
  "@eslint-react": {
177
166
  meta: {
@@ -233,26 +222,16 @@ declare const plugins$6: {
233
222
  "prefer-shorthand-fragment": _typescript_eslint_utils_ts_eslint.RuleModule<"preferShorthandFragment", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
234
223
  "no-complicated-conditional-rendering": _typescript_eslint_utils_ts_eslint.RuleModule<"noComplexConditionalRendering", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
235
224
  };
236
- DEFAULT_ESLINT_REACT_SETTINGS: {
237
- readonly additionalHooks: {
238
- readonly useLayoutEffect: ["useIsomorphicLayoutEffect"];
239
- };
240
- readonly polymorphicPropName: "as";
241
- readonly strictImportCheck: true;
242
- readonly version: "detect";
243
- };
244
225
  };
245
226
  };
246
227
  declare const settings$5: {
247
228
  "react-x": {
248
- readonly additionalComponents: [{
249
- readonly name: "Link";
250
- readonly as: "a";
251
- readonly attributes: [{
252
- readonly name: "to";
253
- readonly as: "href";
254
- }];
255
- }];
229
+ readonly additionalHooks: {
230
+ readonly useLayoutEffect: ["useIsomorphicLayoutEffect"];
231
+ };
232
+ readonly polymorphicPropName: "as";
233
+ readonly strictImportCheck: false;
234
+ readonly version: "detect";
256
235
  };
257
236
  };
258
237
 
@@ -361,14 +340,6 @@ declare const plugins$5: {
361
340
  "prefer-shorthand-fragment": _typescript_eslint_utils_ts_eslint.RuleModule<"preferShorthandFragment", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
362
341
  "no-complicated-conditional-rendering": _typescript_eslint_utils_ts_eslint.RuleModule<"noComplexConditionalRendering", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
363
342
  };
364
- DEFAULT_ESLINT_REACT_SETTINGS: {
365
- readonly additionalHooks: {
366
- readonly useLayoutEffect: ["useIsomorphicLayoutEffect"];
367
- };
368
- readonly polymorphicPropName: "as";
369
- readonly strictImportCheck: true;
370
- readonly version: "detect";
371
- };
372
343
  };
373
344
  };
374
345
  declare const settings$4: {
@@ -377,7 +348,7 @@ declare const settings$4: {
377
348
  readonly useLayoutEffect: ["useIsomorphicLayoutEffect"];
378
349
  };
379
350
  readonly polymorphicPropName: "as";
380
- readonly strictImportCheck: true;
351
+ readonly strictImportCheck: false;
381
352
  readonly version: "detect";
382
353
  };
383
354
  };
@@ -500,28 +471,16 @@ declare const plugins$3: {
500
471
  readonly "no-unsafe-iframe-sandbox": _typescript_eslint_utils_ts_eslint.RuleModule<"noUnsafeIframeSandbox", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
501
472
  readonly "no-unsafe-target-blank": _typescript_eslint_utils_ts_eslint.RuleModule<"noUnsafeTargetBlank", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
502
473
  };
503
- readonly DEFAULT_ESLINT_REACT_SETTINGS: {
504
- readonly additionalComponents: [{
505
- readonly name: "Link";
506
- readonly as: "a";
507
- readonly attributes: [{
508
- readonly name: "to";
509
- readonly as: "href";
510
- }];
511
- }];
512
- };
513
474
  };
514
475
  };
515
476
  declare const settings$3: {
516
477
  "react-x": {
517
- readonly additionalComponents: [{
518
- readonly name: "Link";
519
- readonly as: "a";
520
- readonly attributes: [{
521
- readonly name: "to";
522
- readonly as: "href";
523
- }];
524
- }];
478
+ readonly additionalHooks: {
479
+ readonly useLayoutEffect: ["useIsomorphicLayoutEffect"];
480
+ };
481
+ readonly polymorphicPropName: "as";
482
+ readonly strictImportCheck: false;
483
+ readonly version: "detect";
525
484
  };
526
485
  };
527
486
 
@@ -735,7 +694,6 @@ declare const plugins$2: {
735
694
  "no-leaked-resize-observer": _typescript_eslint_utils_ts_eslint.RuleModule<"noLeakedResizeObserver" | "noLeakedResizeObserverInControlFlow" | "noLeakedResizeObserverNoFloatingInstance", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
736
695
  "no-leaked-timeout": _typescript_eslint_utils_ts_eslint.RuleModule<"noLeakedTimeoutInEffect" | "noLeakedTimeoutInLifecycle" | "noLeakedTimeoutNoTimeoutId", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
737
696
  };
738
- DEFAULT_ESLINT_REACT_SETTINGS: {};
739
697
  };
740
698
  "@eslint-react/dom": {
741
699
  readonly meta: {
@@ -756,16 +714,6 @@ declare const plugins$2: {
756
714
  readonly "no-unsafe-iframe-sandbox": _typescript_eslint_utils_ts_eslint.RuleModule<"noUnsafeIframeSandbox", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
757
715
  readonly "no-unsafe-target-blank": _typescript_eslint_utils_ts_eslint.RuleModule<"noUnsafeTargetBlank", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
758
716
  };
759
- readonly DEFAULT_ESLINT_REACT_SETTINGS: {
760
- readonly additionalComponents: [{
761
- readonly name: "Link";
762
- readonly as: "a";
763
- readonly attributes: [{
764
- readonly name: "to";
765
- readonly as: "href";
766
- }];
767
- }];
768
- };
769
717
  };
770
718
  "@eslint-react": {
771
719
  meta: {
@@ -827,26 +775,16 @@ declare const plugins$2: {
827
775
  "prefer-shorthand-fragment": _typescript_eslint_utils_ts_eslint.RuleModule<"preferShorthandFragment", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
828
776
  "no-complicated-conditional-rendering": _typescript_eslint_utils_ts_eslint.RuleModule<"noComplexConditionalRendering", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
829
777
  };
830
- DEFAULT_ESLINT_REACT_SETTINGS: {
831
- readonly additionalHooks: {
832
- readonly useLayoutEffect: ["useIsomorphicLayoutEffect"];
833
- };
834
- readonly polymorphicPropName: "as";
835
- readonly strictImportCheck: true;
836
- readonly version: "detect";
837
- };
838
778
  };
839
779
  };
840
780
  declare const settings$2: {
841
781
  "react-x": {
842
- readonly additionalComponents: [{
843
- readonly name: "Link";
844
- readonly as: "a";
845
- readonly attributes: [{
846
- readonly name: "to";
847
- readonly as: "href";
848
- }];
849
- }];
782
+ readonly additionalHooks: {
783
+ readonly useLayoutEffect: ["useIsomorphicLayoutEffect"];
784
+ };
785
+ readonly polymorphicPropName: "as";
786
+ readonly strictImportCheck: false;
787
+ readonly version: "detect";
850
788
  };
851
789
  };
852
790
 
@@ -981,7 +919,6 @@ declare const plugins$1: {
981
919
  "no-leaked-resize-observer": _typescript_eslint_utils_ts_eslint.RuleModule<"noLeakedResizeObserver" | "noLeakedResizeObserverInControlFlow" | "noLeakedResizeObserverNoFloatingInstance", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
982
920
  "no-leaked-timeout": _typescript_eslint_utils_ts_eslint.RuleModule<"noLeakedTimeoutInEffect" | "noLeakedTimeoutInLifecycle" | "noLeakedTimeoutNoTimeoutId", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
983
921
  };
984
- DEFAULT_ESLINT_REACT_SETTINGS: {};
985
922
  };
986
923
  "@eslint-react/dom": {
987
924
  readonly meta: {
@@ -1002,16 +939,6 @@ declare const plugins$1: {
1002
939
  readonly "no-unsafe-iframe-sandbox": _typescript_eslint_utils_ts_eslint.RuleModule<"noUnsafeIframeSandbox", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
1003
940
  readonly "no-unsafe-target-blank": _typescript_eslint_utils_ts_eslint.RuleModule<"noUnsafeTargetBlank", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
1004
941
  };
1005
- readonly DEFAULT_ESLINT_REACT_SETTINGS: {
1006
- readonly additionalComponents: [{
1007
- readonly name: "Link";
1008
- readonly as: "a";
1009
- readonly attributes: [{
1010
- readonly name: "to";
1011
- readonly as: "href";
1012
- }];
1013
- }];
1014
- };
1015
942
  };
1016
943
  "@eslint-react": {
1017
944
  meta: {
@@ -1073,26 +1000,16 @@ declare const plugins$1: {
1073
1000
  "prefer-shorthand-fragment": _typescript_eslint_utils_ts_eslint.RuleModule<"preferShorthandFragment", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
1074
1001
  "no-complicated-conditional-rendering": _typescript_eslint_utils_ts_eslint.RuleModule<"noComplexConditionalRendering", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
1075
1002
  };
1076
- DEFAULT_ESLINT_REACT_SETTINGS: {
1077
- readonly additionalHooks: {
1078
- readonly useLayoutEffect: ["useIsomorphicLayoutEffect"];
1079
- };
1080
- readonly polymorphicPropName: "as";
1081
- readonly strictImportCheck: true;
1082
- readonly version: "detect";
1083
- };
1084
1003
  };
1085
1004
  };
1086
1005
  declare const settings$1: {
1087
1006
  "react-x": {
1088
- readonly additionalComponents: [{
1089
- readonly name: "Link";
1090
- readonly as: "a";
1091
- readonly attributes: [{
1092
- readonly name: "to";
1093
- readonly as: "href";
1094
- }];
1095
- }];
1007
+ readonly additionalHooks: {
1008
+ readonly useLayoutEffect: ["useIsomorphicLayoutEffect"];
1009
+ };
1010
+ readonly polymorphicPropName: "as";
1011
+ readonly strictImportCheck: false;
1012
+ readonly version: "detect";
1096
1013
  };
1097
1014
  };
1098
1015
 
@@ -1226,7 +1143,6 @@ declare const plugins: {
1226
1143
  "no-leaked-resize-observer": _typescript_eslint_utils_ts_eslint.RuleModule<"noLeakedResizeObserver" | "noLeakedResizeObserverInControlFlow" | "noLeakedResizeObserverNoFloatingInstance", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
1227
1144
  "no-leaked-timeout": _typescript_eslint_utils_ts_eslint.RuleModule<"noLeakedTimeoutInEffect" | "noLeakedTimeoutInLifecycle" | "noLeakedTimeoutNoTimeoutId", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
1228
1145
  };
1229
- DEFAULT_ESLINT_REACT_SETTINGS: {};
1230
1146
  };
1231
1147
  "@eslint-react/dom": {
1232
1148
  readonly meta: {
@@ -1247,16 +1163,6 @@ declare const plugins: {
1247
1163
  readonly "no-unsafe-iframe-sandbox": _typescript_eslint_utils_ts_eslint.RuleModule<"noUnsafeIframeSandbox", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
1248
1164
  readonly "no-unsafe-target-blank": _typescript_eslint_utils_ts_eslint.RuleModule<"noUnsafeTargetBlank", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
1249
1165
  };
1250
- readonly DEFAULT_ESLINT_REACT_SETTINGS: {
1251
- readonly additionalComponents: [{
1252
- readonly name: "Link";
1253
- readonly as: "a";
1254
- readonly attributes: [{
1255
- readonly name: "to";
1256
- readonly as: "href";
1257
- }];
1258
- }];
1259
- };
1260
1166
  };
1261
1167
  "@eslint-react": {
1262
1168
  meta: {
@@ -1318,26 +1224,16 @@ declare const plugins: {
1318
1224
  "prefer-shorthand-fragment": _typescript_eslint_utils_ts_eslint.RuleModule<"preferShorthandFragment", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
1319
1225
  "no-complicated-conditional-rendering": _typescript_eslint_utils_ts_eslint.RuleModule<"noComplexConditionalRendering", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
1320
1226
  };
1321
- DEFAULT_ESLINT_REACT_SETTINGS: {
1322
- readonly additionalHooks: {
1323
- readonly useLayoutEffect: ["useIsomorphicLayoutEffect"];
1324
- };
1325
- readonly polymorphicPropName: "as";
1326
- readonly strictImportCheck: true;
1327
- readonly version: "detect";
1328
- };
1329
1227
  };
1330
1228
  };
1331
1229
  declare const settings: {
1332
1230
  "react-x": {
1333
- readonly additionalComponents: [{
1334
- readonly name: "Link";
1335
- readonly as: "a";
1336
- readonly attributes: [{
1337
- readonly name: "to";
1338
- readonly as: "href";
1339
- }];
1340
- }];
1231
+ readonly additionalHooks: {
1232
+ readonly useLayoutEffect: ["useIsomorphicLayoutEffect"];
1233
+ };
1234
+ readonly polymorphicPropName: "as";
1235
+ readonly strictImportCheck: false;
1236
+ readonly version: "detect";
1341
1237
  };
1342
1238
  };
1343
1239
 
package/dist/index.js CHANGED
@@ -6,6 +6,7 @@ var reactHooksExtra = require('eslint-plugin-react-hooks-extra');
6
6
  var reactNamingConvention = require('eslint-plugin-react-naming-convention');
7
7
  var reactWebApi = require('eslint-plugin-react-web-api');
8
8
  var react = require('eslint-plugin-react-x');
9
+ var shared = require('@eslint-react/shared');
9
10
  var tools = require('@eslint-react/tools');
10
11
 
11
12
  function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
@@ -25,7 +26,7 @@ var __export = (target, all) => {
25
26
 
26
27
  // package.json
27
28
  var name = "@eslint-react/eslint-plugin";
28
- var version = "1.20.0-beta.2";
29
+ var version = "1.20.0-beta.9";
29
30
 
30
31
  // src/configs/all.ts
31
32
  var all_exports = {};
@@ -88,7 +89,7 @@ var plugins = {
88
89
  "@eslint-react": react__default.default
89
90
  };
90
91
  var settings = {
91
- "react-x": react__default.default.DEFAULT_ESLINT_REACT_SETTINGS
92
+ "react-x": shared.DEFAULT_ESLINT_REACT_SETTINGS
92
93
  };
93
94
 
94
95
  // src/configs/dom.ts
@@ -119,7 +120,7 @@ var plugins2 = {
119
120
  "@eslint-react/dom": reactDom__default.default
120
121
  };
121
122
  var settings2 = {
122
- "react-x": reactDom__default.default.DEFAULT_ESLINT_REACT_SETTINGS
123
+ "react-x": shared.DEFAULT_ESLINT_REACT_SETTINGS
123
124
  };
124
125
 
125
126
  // src/configs/all.ts
package/dist/index.mjs CHANGED
@@ -4,6 +4,7 @@ import reactHooksExtra from 'eslint-plugin-react-hooks-extra';
4
4
  import reactNamingConvention from 'eslint-plugin-react-naming-convention';
5
5
  import reactWebApi from 'eslint-plugin-react-web-api';
6
6
  import react from 'eslint-plugin-react-x';
7
+ import { DEFAULT_ESLINT_REACT_SETTINGS } from '@eslint-react/shared';
7
8
  import { fromEntries, entries, typeOf } from '@eslint-react/tools';
8
9
 
9
10
  var __defProp = Object.defineProperty;
@@ -14,7 +15,7 @@ var __export = (target, all) => {
14
15
 
15
16
  // package.json
16
17
  var name = "@eslint-react/eslint-plugin";
17
- var version = "1.20.0-beta.2";
18
+ var version = "1.20.0-beta.9";
18
19
 
19
20
  // src/configs/all.ts
20
21
  var all_exports = {};
@@ -77,7 +78,7 @@ var plugins = {
77
78
  "@eslint-react": react
78
79
  };
79
80
  var settings = {
80
- "react-x": react.DEFAULT_ESLINT_REACT_SETTINGS
81
+ "react-x": DEFAULT_ESLINT_REACT_SETTINGS
81
82
  };
82
83
 
83
84
  // src/configs/dom.ts
@@ -108,7 +109,7 @@ var plugins2 = {
108
109
  "@eslint-react/dom": reactDom
109
110
  };
110
111
  var settings2 = {
111
- "react-x": reactDom.DEFAULT_ESLINT_REACT_SETTINGS
112
+ "react-x": DEFAULT_ESLINT_REACT_SETTINGS
112
113
  };
113
114
 
114
115
  // src/configs/all.ts
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eslint-react/eslint-plugin",
3
- "version": "1.20.0-beta.2",
3
+ "version": "1.20.0-beta.9",
4
4
  "description": "The main ESLint plugin of ESLint React. Contains all the rules and presets of ESLint React.",
5
5
  "keywords": [
6
6
  "react",
@@ -50,18 +50,19 @@
50
50
  "@typescript-eslint/type-utils": "^8.18.0",
51
51
  "@typescript-eslint/types": "^8.18.0",
52
52
  "@typescript-eslint/utils": "^8.18.0",
53
- "@eslint-react/shared": "1.20.0-beta.2",
54
- "@eslint-react/types": "1.20.0-beta.2",
55
- "@eslint-react/tools": "1.20.0-beta.2",
56
- "eslint-plugin-react-debug": "1.20.0-beta.2",
57
- "eslint-plugin-react-dom": "1.20.0-beta.2",
58
- "eslint-plugin-react-hooks-extra": "1.20.0-beta.2",
59
- "eslint-plugin-react-web-api": "1.20.0-beta.2",
60
- "eslint-plugin-react-x": "1.20.0-beta.2",
61
- "eslint-plugin-react-naming-convention": "1.20.0-beta.2"
53
+ "@eslint-react/tools": "1.20.0-beta.9",
54
+ "@eslint-react/shared": "1.20.0-beta.9",
55
+ "eslint-plugin-react-dom": "1.20.0-beta.9",
56
+ "eslint-plugin-react-debug": "1.20.0-beta.9",
57
+ "@eslint-react/types": "1.20.0-beta.9",
58
+ "eslint-plugin-react-naming-convention": "1.20.0-beta.9",
59
+ "eslint-plugin-react-hooks-extra": "1.20.0-beta.9",
60
+ "eslint-plugin-react-web-api": "1.20.0-beta.9",
61
+ "eslint-plugin-react-x": "1.20.0-beta.9"
62
62
  },
63
63
  "devDependencies": {
64
- "tsup": "^8.3.5"
64
+ "tsup": "^8.3.5",
65
+ "@workspace/configs": "0.0.0"
65
66
  },
66
67
  "peerDependencies": {
67
68
  "eslint": "^8.57.0 || ^9.0.0",