@eslint-react/eslint-plugin 1.9.2-next.3 → 1.9.2-next.5
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 +15 -1
- package/dist/index.d.mts +16 -16
- package/dist/index.d.ts +16 -16
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +9 -9
package/README.md
CHANGED
|
@@ -29,6 +29,9 @@ A series of composable ESLint rules rewritten from scratch for libraries and fra
|
|
|
29
29
|
|
|
30
30
|
## Who is using?
|
|
31
31
|
|
|
32
|
+
<details>
|
|
33
|
+
<summary>Click to toggle contents</summary>
|
|
34
|
+
|
|
32
35
|
- [`AndreaPontrandolfo/sheriff`](https://github.com/AndreaPontrandolfo/sheriff) - A comprehensive and opinionated Typescript-first ESLint configuration.
|
|
33
36
|
- [`antfu/eslint-config`](https://github.com/antfu/eslint-config) - Anthony's ESLint config preset.
|
|
34
37
|
- [`christopher-buss/roblox-ts-eslint-config`](https://github.com/christopher-buss/roblox-ts-eslint-config) - iSentinel's ESLint config preset for Roblox-TS.
|
|
@@ -37,9 +40,13 @@ A series of composable ESLint rules rewritten from scratch for libraries and fra
|
|
|
37
40
|
- [`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.
|
|
38
41
|
- [`ensdomains/ensdomains-landing`](https://github.com/ensdomains/ensdomains-landing) - ENS Homepage V2, the main homepage of the ENS protocol.
|
|
39
42
|
- [`hairyf/overlastic`](https://github.com/hairyf/overlastic) - A universal overlays utils, support react, vue, vanilla, svelte.
|
|
43
|
+
- [`hipstersmoothie/react-window-splitter`](https://github.com/hipstersmoothie/react-window-splitter) - A full featured window splitter for React.
|
|
40
44
|
- [`johannschopplich/unlazy`](https://github.com/johannschopplich/unlazy) - Universal lazy loading library for placeholder images leveraging native browser APIs.
|
|
45
|
+
- [`npmgraph/npmgraph`](https://github.com/npmgraph/npmgraph) - A tool for exploring NPM modules and dependencies.
|
|
41
46
|
- [`react-navigation/react-navigation`](https://github.com/react-navigation/react-navigation) - Routing and navigation for your React Native apps.
|
|
47
|
+
- [`RebeccaStevens/eslint-config-rebeccastevens`](https://github.com/RebeccaStevens/eslint-config-rebeccastevens) - RebeccaStevens' ESLint config preset.
|
|
42
48
|
- [`RSSNext/follow`](https://github.com/RSSNext/follow) - 🧡 Next generation information browser.
|
|
49
|
+
- [`satya164/PocketGear`](https://github.com/satya164/PocketGear) - A clean and simple Pokédex app for Pokémon GO.
|
|
43
50
|
- [`SukkaW/eslint-config-sukka`](https://github.com/SukkaW/eslint-config-sukka) - ESLint configuration of Sukka.
|
|
44
51
|
- [`SukkaW/foxact`](https://github.com/SukkaW/foxact) - React Hooks/Utils done right. For Browser, SSR, and React Server Components.
|
|
45
52
|
- [`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.
|
|
@@ -47,9 +54,11 @@ A series of composable ESLint rules rewritten from scratch for libraries and fra
|
|
|
47
54
|
- [`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.
|
|
48
55
|
- [`TanStack/store`](https://github.com/TanStack/store) - 🤖 Framework agnostic, type-safe store w/ reactive framework adapters.
|
|
49
56
|
|
|
57
|
+
</details>
|
|
58
|
+
|
|
50
59
|
_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._
|
|
51
60
|
|
|
52
|
-
Find more
|
|
61
|
+
Find more on [GitHub Dependents](https://github.com/Rel1cx/eslint-react/network/dependents).
|
|
53
62
|
|
|
54
63
|
## Install
|
|
55
64
|
|
|
@@ -126,6 +135,9 @@ Add the plugin to your `.eslintrc.json`:
|
|
|
126
135
|
|
|
127
136
|
### Legacy Config
|
|
128
137
|
|
|
138
|
+
<details>
|
|
139
|
+
<summary>Click to toggle contents</summary>
|
|
140
|
+
|
|
129
141
|
- **core-legacy**\
|
|
130
142
|
Enable rules that are renderer-agnostic.
|
|
131
143
|
- **recommended-legacy**\
|
|
@@ -141,6 +153,8 @@ Add the plugin to your `.eslintrc.json`:
|
|
|
141
153
|
- **off-legacy**\
|
|
142
154
|
Disable all rules in this plugin except for debug rules.
|
|
143
155
|
|
|
156
|
+
</details>
|
|
157
|
+
|
|
144
158
|
[Full Presets List↗](https://eslint-react.xyz/docs/presets)
|
|
145
159
|
|
|
146
160
|
## Rules
|
package/dist/index.d.mts
CHANGED
|
@@ -91,7 +91,7 @@ declare const _default: {
|
|
|
91
91
|
readonly useLayoutEffect: ["useIsomorphicLayoutEffect"];
|
|
92
92
|
};
|
|
93
93
|
readonly polymorphicPropName: "as";
|
|
94
|
-
readonly skipImportCheck:
|
|
94
|
+
readonly skipImportCheck: false;
|
|
95
95
|
readonly version: "detect";
|
|
96
96
|
};
|
|
97
97
|
};
|
|
@@ -170,7 +170,7 @@ declare const _default: {
|
|
|
170
170
|
readonly useLayoutEffect: ["useIsomorphicLayoutEffect"];
|
|
171
171
|
};
|
|
172
172
|
readonly polymorphicPropName: "as";
|
|
173
|
-
readonly skipImportCheck:
|
|
173
|
+
readonly skipImportCheck: false;
|
|
174
174
|
readonly version: "detect";
|
|
175
175
|
};
|
|
176
176
|
};
|
|
@@ -223,7 +223,7 @@ declare const _default: {
|
|
|
223
223
|
readonly useLayoutEffect: ["useIsomorphicLayoutEffect"];
|
|
224
224
|
};
|
|
225
225
|
readonly polymorphicPropName: "as";
|
|
226
|
-
readonly skipImportCheck:
|
|
226
|
+
readonly skipImportCheck: false;
|
|
227
227
|
readonly version: "detect";
|
|
228
228
|
};
|
|
229
229
|
};
|
|
@@ -270,7 +270,7 @@ declare const _default: {
|
|
|
270
270
|
readonly useLayoutEffect: ["useIsomorphicLayoutEffect"];
|
|
271
271
|
};
|
|
272
272
|
readonly polymorphicPropName: "as";
|
|
273
|
-
readonly skipImportCheck:
|
|
273
|
+
readonly skipImportCheck: false;
|
|
274
274
|
readonly version: "detect";
|
|
275
275
|
};
|
|
276
276
|
};
|
|
@@ -294,7 +294,7 @@ declare const _default: {
|
|
|
294
294
|
readonly useLayoutEffect: ["useIsomorphicLayoutEffect"];
|
|
295
295
|
};
|
|
296
296
|
readonly polymorphicPropName: "as";
|
|
297
|
-
readonly skipImportCheck:
|
|
297
|
+
readonly skipImportCheck: false;
|
|
298
298
|
readonly version: "detect";
|
|
299
299
|
};
|
|
300
300
|
};
|
|
@@ -312,7 +312,7 @@ declare const _default: {
|
|
|
312
312
|
readonly useLayoutEffect: ["useIsomorphicLayoutEffect"];
|
|
313
313
|
};
|
|
314
314
|
readonly polymorphicPropName: "as";
|
|
315
|
-
readonly skipImportCheck:
|
|
315
|
+
readonly skipImportCheck: false;
|
|
316
316
|
readonly version: "detect";
|
|
317
317
|
};
|
|
318
318
|
};
|
|
@@ -344,7 +344,7 @@ declare const _default: {
|
|
|
344
344
|
readonly useLayoutEffect: ["useIsomorphicLayoutEffect"];
|
|
345
345
|
};
|
|
346
346
|
readonly polymorphicPropName: "as";
|
|
347
|
-
readonly skipImportCheck:
|
|
347
|
+
readonly skipImportCheck: false;
|
|
348
348
|
readonly version: "detect";
|
|
349
349
|
};
|
|
350
350
|
};
|
|
@@ -370,7 +370,7 @@ declare const _default: {
|
|
|
370
370
|
readonly useLayoutEffect: ["useIsomorphicLayoutEffect"];
|
|
371
371
|
};
|
|
372
372
|
readonly polymorphicPropName: "as";
|
|
373
|
-
readonly skipImportCheck:
|
|
373
|
+
readonly skipImportCheck: false;
|
|
374
374
|
readonly version: "detect";
|
|
375
375
|
};
|
|
376
376
|
};
|
|
@@ -455,7 +455,7 @@ declare const _default: {
|
|
|
455
455
|
readonly useLayoutEffect: ["useIsomorphicLayoutEffect"];
|
|
456
456
|
};
|
|
457
457
|
readonly polymorphicPropName: "as";
|
|
458
|
-
readonly skipImportCheck:
|
|
458
|
+
readonly skipImportCheck: false;
|
|
459
459
|
readonly version: "detect";
|
|
460
460
|
};
|
|
461
461
|
};
|
|
@@ -487,7 +487,7 @@ declare const _default: {
|
|
|
487
487
|
readonly useLayoutEffect: ["useIsomorphicLayoutEffect"];
|
|
488
488
|
};
|
|
489
489
|
readonly polymorphicPropName: "as";
|
|
490
|
-
readonly skipImportCheck:
|
|
490
|
+
readonly skipImportCheck: false;
|
|
491
491
|
readonly version: "detect";
|
|
492
492
|
};
|
|
493
493
|
};
|
|
@@ -513,7 +513,7 @@ declare const _default: {
|
|
|
513
513
|
readonly useLayoutEffect: ["useIsomorphicLayoutEffect"];
|
|
514
514
|
};
|
|
515
515
|
readonly polymorphicPropName: "as";
|
|
516
|
-
readonly skipImportCheck:
|
|
516
|
+
readonly skipImportCheck: false;
|
|
517
517
|
readonly version: "detect";
|
|
518
518
|
};
|
|
519
519
|
};
|
|
@@ -592,7 +592,7 @@ declare const _default: {
|
|
|
592
592
|
readonly useLayoutEffect: ["useIsomorphicLayoutEffect"];
|
|
593
593
|
};
|
|
594
594
|
readonly polymorphicPropName: "as";
|
|
595
|
-
readonly skipImportCheck:
|
|
595
|
+
readonly skipImportCheck: false;
|
|
596
596
|
readonly version: "detect";
|
|
597
597
|
};
|
|
598
598
|
};
|
|
@@ -656,7 +656,7 @@ declare const _default: {
|
|
|
656
656
|
readonly useLayoutEffect: ["useIsomorphicLayoutEffect"];
|
|
657
657
|
};
|
|
658
658
|
readonly polymorphicPropName: "as";
|
|
659
|
-
readonly skipImportCheck:
|
|
659
|
+
readonly skipImportCheck: false;
|
|
660
660
|
readonly version: "detect";
|
|
661
661
|
};
|
|
662
662
|
};
|
|
@@ -714,7 +714,7 @@ declare const _default: {
|
|
|
714
714
|
readonly useLayoutEffect: ["useIsomorphicLayoutEffect"];
|
|
715
715
|
};
|
|
716
716
|
readonly polymorphicPropName: "as";
|
|
717
|
-
readonly skipImportCheck:
|
|
717
|
+
readonly skipImportCheck: false;
|
|
718
718
|
readonly version: "detect";
|
|
719
719
|
};
|
|
720
720
|
};
|
|
@@ -779,7 +779,7 @@ declare const _default: {
|
|
|
779
779
|
readonly useLayoutEffect: ["useIsomorphicLayoutEffect"];
|
|
780
780
|
};
|
|
781
781
|
readonly polymorphicPropName: "as";
|
|
782
|
-
readonly skipImportCheck:
|
|
782
|
+
readonly skipImportCheck: false;
|
|
783
783
|
readonly version: "detect";
|
|
784
784
|
};
|
|
785
785
|
};
|
|
@@ -838,7 +838,7 @@ declare const _default: {
|
|
|
838
838
|
readonly useLayoutEffect: ["useIsomorphicLayoutEffect"];
|
|
839
839
|
};
|
|
840
840
|
readonly polymorphicPropName: "as";
|
|
841
|
-
readonly skipImportCheck:
|
|
841
|
+
readonly skipImportCheck: false;
|
|
842
842
|
readonly version: "detect";
|
|
843
843
|
};
|
|
844
844
|
};
|
package/dist/index.d.ts
CHANGED
|
@@ -91,7 +91,7 @@ declare const _default: {
|
|
|
91
91
|
readonly useLayoutEffect: ["useIsomorphicLayoutEffect"];
|
|
92
92
|
};
|
|
93
93
|
readonly polymorphicPropName: "as";
|
|
94
|
-
readonly skipImportCheck:
|
|
94
|
+
readonly skipImportCheck: false;
|
|
95
95
|
readonly version: "detect";
|
|
96
96
|
};
|
|
97
97
|
};
|
|
@@ -170,7 +170,7 @@ declare const _default: {
|
|
|
170
170
|
readonly useLayoutEffect: ["useIsomorphicLayoutEffect"];
|
|
171
171
|
};
|
|
172
172
|
readonly polymorphicPropName: "as";
|
|
173
|
-
readonly skipImportCheck:
|
|
173
|
+
readonly skipImportCheck: false;
|
|
174
174
|
readonly version: "detect";
|
|
175
175
|
};
|
|
176
176
|
};
|
|
@@ -223,7 +223,7 @@ declare const _default: {
|
|
|
223
223
|
readonly useLayoutEffect: ["useIsomorphicLayoutEffect"];
|
|
224
224
|
};
|
|
225
225
|
readonly polymorphicPropName: "as";
|
|
226
|
-
readonly skipImportCheck:
|
|
226
|
+
readonly skipImportCheck: false;
|
|
227
227
|
readonly version: "detect";
|
|
228
228
|
};
|
|
229
229
|
};
|
|
@@ -270,7 +270,7 @@ declare const _default: {
|
|
|
270
270
|
readonly useLayoutEffect: ["useIsomorphicLayoutEffect"];
|
|
271
271
|
};
|
|
272
272
|
readonly polymorphicPropName: "as";
|
|
273
|
-
readonly skipImportCheck:
|
|
273
|
+
readonly skipImportCheck: false;
|
|
274
274
|
readonly version: "detect";
|
|
275
275
|
};
|
|
276
276
|
};
|
|
@@ -294,7 +294,7 @@ declare const _default: {
|
|
|
294
294
|
readonly useLayoutEffect: ["useIsomorphicLayoutEffect"];
|
|
295
295
|
};
|
|
296
296
|
readonly polymorphicPropName: "as";
|
|
297
|
-
readonly skipImportCheck:
|
|
297
|
+
readonly skipImportCheck: false;
|
|
298
298
|
readonly version: "detect";
|
|
299
299
|
};
|
|
300
300
|
};
|
|
@@ -312,7 +312,7 @@ declare const _default: {
|
|
|
312
312
|
readonly useLayoutEffect: ["useIsomorphicLayoutEffect"];
|
|
313
313
|
};
|
|
314
314
|
readonly polymorphicPropName: "as";
|
|
315
|
-
readonly skipImportCheck:
|
|
315
|
+
readonly skipImportCheck: false;
|
|
316
316
|
readonly version: "detect";
|
|
317
317
|
};
|
|
318
318
|
};
|
|
@@ -344,7 +344,7 @@ declare const _default: {
|
|
|
344
344
|
readonly useLayoutEffect: ["useIsomorphicLayoutEffect"];
|
|
345
345
|
};
|
|
346
346
|
readonly polymorphicPropName: "as";
|
|
347
|
-
readonly skipImportCheck:
|
|
347
|
+
readonly skipImportCheck: false;
|
|
348
348
|
readonly version: "detect";
|
|
349
349
|
};
|
|
350
350
|
};
|
|
@@ -370,7 +370,7 @@ declare const _default: {
|
|
|
370
370
|
readonly useLayoutEffect: ["useIsomorphicLayoutEffect"];
|
|
371
371
|
};
|
|
372
372
|
readonly polymorphicPropName: "as";
|
|
373
|
-
readonly skipImportCheck:
|
|
373
|
+
readonly skipImportCheck: false;
|
|
374
374
|
readonly version: "detect";
|
|
375
375
|
};
|
|
376
376
|
};
|
|
@@ -455,7 +455,7 @@ declare const _default: {
|
|
|
455
455
|
readonly useLayoutEffect: ["useIsomorphicLayoutEffect"];
|
|
456
456
|
};
|
|
457
457
|
readonly polymorphicPropName: "as";
|
|
458
|
-
readonly skipImportCheck:
|
|
458
|
+
readonly skipImportCheck: false;
|
|
459
459
|
readonly version: "detect";
|
|
460
460
|
};
|
|
461
461
|
};
|
|
@@ -487,7 +487,7 @@ declare const _default: {
|
|
|
487
487
|
readonly useLayoutEffect: ["useIsomorphicLayoutEffect"];
|
|
488
488
|
};
|
|
489
489
|
readonly polymorphicPropName: "as";
|
|
490
|
-
readonly skipImportCheck:
|
|
490
|
+
readonly skipImportCheck: false;
|
|
491
491
|
readonly version: "detect";
|
|
492
492
|
};
|
|
493
493
|
};
|
|
@@ -513,7 +513,7 @@ declare const _default: {
|
|
|
513
513
|
readonly useLayoutEffect: ["useIsomorphicLayoutEffect"];
|
|
514
514
|
};
|
|
515
515
|
readonly polymorphicPropName: "as";
|
|
516
|
-
readonly skipImportCheck:
|
|
516
|
+
readonly skipImportCheck: false;
|
|
517
517
|
readonly version: "detect";
|
|
518
518
|
};
|
|
519
519
|
};
|
|
@@ -592,7 +592,7 @@ declare const _default: {
|
|
|
592
592
|
readonly useLayoutEffect: ["useIsomorphicLayoutEffect"];
|
|
593
593
|
};
|
|
594
594
|
readonly polymorphicPropName: "as";
|
|
595
|
-
readonly skipImportCheck:
|
|
595
|
+
readonly skipImportCheck: false;
|
|
596
596
|
readonly version: "detect";
|
|
597
597
|
};
|
|
598
598
|
};
|
|
@@ -656,7 +656,7 @@ declare const _default: {
|
|
|
656
656
|
readonly useLayoutEffect: ["useIsomorphicLayoutEffect"];
|
|
657
657
|
};
|
|
658
658
|
readonly polymorphicPropName: "as";
|
|
659
|
-
readonly skipImportCheck:
|
|
659
|
+
readonly skipImportCheck: false;
|
|
660
660
|
readonly version: "detect";
|
|
661
661
|
};
|
|
662
662
|
};
|
|
@@ -714,7 +714,7 @@ declare const _default: {
|
|
|
714
714
|
readonly useLayoutEffect: ["useIsomorphicLayoutEffect"];
|
|
715
715
|
};
|
|
716
716
|
readonly polymorphicPropName: "as";
|
|
717
|
-
readonly skipImportCheck:
|
|
717
|
+
readonly skipImportCheck: false;
|
|
718
718
|
readonly version: "detect";
|
|
719
719
|
};
|
|
720
720
|
};
|
|
@@ -779,7 +779,7 @@ declare const _default: {
|
|
|
779
779
|
readonly useLayoutEffect: ["useIsomorphicLayoutEffect"];
|
|
780
780
|
};
|
|
781
781
|
readonly polymorphicPropName: "as";
|
|
782
|
-
readonly skipImportCheck:
|
|
782
|
+
readonly skipImportCheck: false;
|
|
783
783
|
readonly version: "detect";
|
|
784
784
|
};
|
|
785
785
|
};
|
|
@@ -838,7 +838,7 @@ declare const _default: {
|
|
|
838
838
|
readonly useLayoutEffect: ["useIsomorphicLayoutEffect"];
|
|
839
839
|
};
|
|
840
840
|
readonly polymorphicPropName: "as";
|
|
841
|
-
readonly skipImportCheck:
|
|
841
|
+
readonly skipImportCheck: false;
|
|
842
842
|
readonly version: "detect";
|
|
843
843
|
};
|
|
844
844
|
};
|
package/dist/index.js
CHANGED
|
@@ -36,7 +36,7 @@ var react__namespace = /*#__PURE__*/_interopNamespace(react);
|
|
|
36
36
|
|
|
37
37
|
// package.json
|
|
38
38
|
var name = "@eslint-react/eslint-plugin";
|
|
39
|
-
var version = "1.9.2-next.
|
|
39
|
+
var version = "1.9.2-next.5";
|
|
40
40
|
function transformKeys(obj, transform) {
|
|
41
41
|
if (tools.typeOf(obj) !== "object") return obj;
|
|
42
42
|
const res = {};
|
package/dist/index.mjs
CHANGED
|
@@ -10,7 +10,7 @@ import * as react from 'eslint-plugin-react-x';
|
|
|
10
10
|
|
|
11
11
|
// package.json
|
|
12
12
|
var name = "@eslint-react/eslint-plugin";
|
|
13
|
-
var version = "1.9.2-next.
|
|
13
|
+
var version = "1.9.2-next.5";
|
|
14
14
|
function transformKeys(obj, transform) {
|
|
15
15
|
if (typeOf(obj) !== "object") return obj;
|
|
16
16
|
const res = {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@eslint-react/eslint-plugin",
|
|
3
|
-
"version": "1.9.2-next.
|
|
3
|
+
"version": "1.9.2-next.5",
|
|
4
4
|
"description": "The main ESLint plugin of ESLint React. Contains all the rules and presets of ESLint React.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"eslint",
|
|
@@ -47,14 +47,14 @@
|
|
|
47
47
|
"@typescript-eslint/type-utils": "^8.0.1",
|
|
48
48
|
"@typescript-eslint/types": "^8.0.1",
|
|
49
49
|
"@typescript-eslint/utils": "^8.0.1",
|
|
50
|
-
"@eslint-react/shared": "1.9.2-next.
|
|
51
|
-
"@eslint-react/
|
|
52
|
-
"
|
|
53
|
-
"eslint-
|
|
54
|
-
"eslint-plugin-react-
|
|
55
|
-
"eslint-plugin-react-
|
|
56
|
-
"eslint-plugin-react-
|
|
57
|
-
"eslint-plugin-react-x": "1.9.2-next.
|
|
50
|
+
"@eslint-react/shared": "1.9.2-next.5",
|
|
51
|
+
"@eslint-react/tools": "1.9.2-next.5",
|
|
52
|
+
"eslint-plugin-react-debug": "1.9.2-next.5",
|
|
53
|
+
"@eslint-react/types": "1.9.2-next.5",
|
|
54
|
+
"eslint-plugin-react-hooks-extra": "1.9.2-next.5",
|
|
55
|
+
"eslint-plugin-react-naming-convention": "1.9.2-next.5",
|
|
56
|
+
"eslint-plugin-react-dom": "1.9.2-next.5",
|
|
57
|
+
"eslint-plugin-react-x": "1.9.2-next.5"
|
|
58
58
|
},
|
|
59
59
|
"devDependencies": {
|
|
60
60
|
"tsup": "^8.2.4"
|