@eslint-react/eslint-plugin 1.20.0-next.7 → 1.20.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
@@ -96,35 +96,9 @@ export default [
96
96
  - [Milestone 2.0 ↗](https://eslint-react.xyz/roadmap#milestone-20)
97
97
  - [Milestone 3.0 ↗](https://eslint-react.xyz/roadmap#milestone-30-draft)
98
98
 
99
- ## Who is using?
100
-
101
- - [`AndreaPontrandolfo/sheriff`](https://github.com/AndreaPontrandolfo/sheriff) - A comprehensive and opinionated Typescript-first ESLint configuration.
102
- - [`antfu/eslint-config`](https://github.com/antfu/eslint-config) - Anthony's ESLint config preset.
103
- - [`christopher-buss/roblox-ts-eslint-config`](https://github.com/christopher-buss/roblox-ts-eslint-config) - iSentinel's ESLint config preset for Roblox-TS.
104
- - [`DimensionDev/Maskbook`](https://github.com/DimensionDev/Maskbook) - The portal to the new, open Internet. ([I:b]).
105
- - [`dream-num/univer`](https://github.com/dream-num/univer) - Univer is an open-source alternative to Google Sheets, Slides, and Docs.
106
- - [`electric-sql/pglite`](https://github.com/electric-sql/pglite) - Lightweight Postgres packaged as WASM into a TypeScript library for the browser, Node.js, Bun and Deno.
107
- - [`ensdomains/ensdomains-landing`](https://github.com/ensdomains/ensdomains-landing) - ENS Homepage V2, the main homepage of the ENS protocol.
108
- - [`hairyf/overlastic`](https://github.com/hairyf/overlastic) - A universal overlays utils, support react, vue, vanilla, svelte.
109
- - [`hipstersmoothie/react-window-splitter`](https://github.com/hipstersmoothie/react-window-splitter) - A full featured window splitter for React.
110
- - [`johannschopplich/unlazy`](https://github.com/johannschopplich/unlazy) - Universal lazy loading library for placeholder images leveraging native browser APIs.
111
- - [`luxdotdev/parsertime`](https://github.com/luxdotdev/parsertime) - A web app written to help collegiate Overwatch players track their performance in scrims.
112
- - [`npmgraph/npmgraph`](https://github.com/npmgraph/npmgraph) - A tool for exploring NPM modules and dependencies.
113
- - [`react-navigation/react-navigation`](https://github.com/react-navigation/react-navigation) - Routing and navigation for your React Native apps.
114
- - [`RebeccaStevens/eslint-config-rebeccastevens`](https://github.com/RebeccaStevens/eslint-config-rebeccastevens) - RebeccaStevens' ESLint config preset.
115
- - [`refined-github/refined-github`](https://github.com/refined-github/refined-github) - :octocat: Browser extension that simplifies the GitHub interface and adds useful features.
116
- - [`RightCapitalHQ/frontend-style-guide`](https://github.com/RightCapitalHQ/frontend-style-guide) - RightCapital's frontend style guide.
117
- - [`RSSNext/follow`](https://github.com/RSSNext/follow) - 🧡 Next generation information browser.
118
- - [`satya164/PocketGear`](https://github.com/satya164/PocketGear) - A clean and simple Pokédex app for Pokémon GO.
119
- - [`SukkaW/eslint-config-sukka`](https://github.com/SukkaW/eslint-config-sukka) - ESLint configuration of Sukka.
120
- - [`SukkaW/foxact`](https://github.com/SukkaW/foxact) - React Hooks/Utils done right. For Browser, SSR, and React Server Components.
121
- - [`TanStack/form`](https://github.com/TanStack/form) - 🤖 Powerful and type-safe form state management for the web. TS/JS, React Form, Solid Form, Lit Form and Vue Form.
122
- - [`TanStack/query`](https://github.com/TanStack/query) - 🤖 Powerful asynchronous state management, server-state utilities and data fetching for the web. TS/JS, React Query, Solid Query, Svelte Query and Vue Query.
123
- - [`TanStack/router`](https://github.com/TanStack/router) - 🤖 Fully typesafe Router for React (and friends) w/ built-in caching, 1st class search-param APIs, client-side cache integration and isomorphic rendering.
124
- - [`TanStack/store`](https://github.com/TanStack/store) - 🤖 Framework agnostic, type-safe store w/ reactive framework adapters.
125
- - [`timkurvers/wine-log-explorer`](https://github.com/timkurvers/wine-log-explorer) - Explorer for Wine logs.
126
- - [`toss/suspensive`](https://github.com/toss/suspensive) - Manage asynchronous operations, timing, error handling, detecting intersection of elements, and caching easily and declaratively (One of TanStack Query community resources).
127
- - [`upleveled/eslint-config-upleveled`](https://github.com/upleveled/eslint-config-upleveled) - UpLeveled ESLint defaults for programming in JavaScript, TypeScript, React, Next.js, Node.js, Postgres.js.
99
+ ## Used by
100
+
101
+ ![used-by](https://eslint-react.xyz/used_by.png)
128
102
 
129
103
  _Data collected from GitHub dependents network, if there are any mismatch or outdated information, feel free to [open issue](https://github.com/Rel1cx/eslint-react/issues/new?assignees=&labels=type%3A+documentation&projects=&template=docs_report.md&title=%5Bdocs%5D+) or pull request._
130
104
 
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-next.7";
29
+ var version = "1.20.0";
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-next.7";
18
+ var version = "1.20.0";
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-next.7",
3
+ "version": "1.20.0",
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,15 +50,15 @@
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/tools": "1.20.0-next.7",
54
- "@eslint-react/shared": "1.20.0-next.7",
55
- "eslint-plugin-react-dom": "1.20.0-next.7",
56
- "@eslint-react/types": "1.20.0-next.7",
57
- "eslint-plugin-react-debug": "1.20.0-next.7",
58
- "eslint-plugin-react-web-api": "1.20.0-next.7",
59
- "eslint-plugin-react-hooks-extra": "1.20.0-next.7",
60
- "eslint-plugin-react-naming-convention": "1.20.0-next.7",
61
- "eslint-plugin-react-x": "1.20.0-next.7"
53
+ "@eslint-react/shared": "1.20.0",
54
+ "@eslint-react/tools": "1.20.0",
55
+ "@eslint-react/types": "1.20.0",
56
+ "eslint-plugin-react-debug": "1.20.0",
57
+ "eslint-plugin-react-dom": "1.20.0",
58
+ "eslint-plugin-react-hooks-extra": "1.20.0",
59
+ "eslint-plugin-react-naming-convention": "1.20.0",
60
+ "eslint-plugin-react-web-api": "1.20.0",
61
+ "eslint-plugin-react-x": "1.20.0"
62
62
  },
63
63
  "devDependencies": {
64
64
  "tsup": "^8.3.5",