@eslint-react/eslint-plugin 1.43.0 → 1.43.2-next.1
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 +4 -4
- package/dist/index.d.mts +30 -30
- package/dist/index.d.ts +30 -30
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +10 -10
package/README.md
CHANGED
|
@@ -9,10 +9,10 @@ A series of future-proof ESLint rules for React and friends.
|
|
|
9
9
|
|
|
10
10
|
## Features
|
|
11
11
|
|
|
12
|
-
-
|
|
13
|
-
-
|
|
14
|
-
-
|
|
15
|
-
-
|
|
12
|
+
- **Modern**: First-class support for TypeScript, React 19, and more.
|
|
13
|
+
- **Flexible**: Increased flexibility with more granular severity control.
|
|
14
|
+
- **Performant**: Built with performance in mind, optimized for large codebases.
|
|
15
|
+
- **Comprehensive**: Handles complex scenarios and identifies problems that other tools might miss.
|
|
16
16
|
|
|
17
17
|
## Public Packages
|
|
18
18
|
|
package/dist/index.d.mts
CHANGED
|
@@ -653,27 +653,27 @@ declare const plugins$6: {
|
|
|
653
653
|
};
|
|
654
654
|
declare const settings$5: {
|
|
655
655
|
"react-x": {
|
|
656
|
+
readonly version: "detect";
|
|
656
657
|
readonly importSource: "react";
|
|
657
|
-
readonly
|
|
658
|
+
readonly strict: false;
|
|
658
659
|
readonly skipImportCheck: true;
|
|
659
|
-
readonly
|
|
660
|
+
readonly polymorphicPropName: "as";
|
|
660
661
|
readonly additionalHooks: {
|
|
661
662
|
readonly useEffect: ["useIsomorphicLayoutEffect"];
|
|
662
663
|
readonly useLayoutEffect: ["useIsomorphicLayoutEffect"];
|
|
663
664
|
};
|
|
664
665
|
readonly jsxPragma?: string | undefined;
|
|
665
666
|
readonly jsxPragmaFrag?: string | undefined;
|
|
666
|
-
readonly strict: boolean;
|
|
667
667
|
readonly additionalComponents?: {
|
|
668
|
-
name: string;
|
|
669
668
|
as?: string | undefined;
|
|
670
669
|
attributes?: {
|
|
671
|
-
name: string;
|
|
672
670
|
as?: string | undefined;
|
|
673
671
|
controlled?: boolean | undefined;
|
|
674
672
|
defaultValue?: string | undefined;
|
|
673
|
+
name: string;
|
|
675
674
|
}[] | undefined;
|
|
676
675
|
selector?: string | undefined;
|
|
676
|
+
name: string;
|
|
677
677
|
}[] | undefined;
|
|
678
678
|
};
|
|
679
679
|
};
|
|
@@ -848,27 +848,27 @@ declare const plugins$4: {
|
|
|
848
848
|
};
|
|
849
849
|
declare const settings$4: {
|
|
850
850
|
"react-x": {
|
|
851
|
+
readonly version: "detect";
|
|
851
852
|
readonly importSource: "react";
|
|
852
|
-
readonly
|
|
853
|
+
readonly strict: false;
|
|
853
854
|
readonly skipImportCheck: true;
|
|
854
|
-
readonly
|
|
855
|
+
readonly polymorphicPropName: "as";
|
|
855
856
|
readonly additionalHooks: {
|
|
856
857
|
readonly useEffect: ["useIsomorphicLayoutEffect"];
|
|
857
858
|
readonly useLayoutEffect: ["useIsomorphicLayoutEffect"];
|
|
858
859
|
};
|
|
859
860
|
readonly jsxPragma?: string | undefined;
|
|
860
861
|
readonly jsxPragmaFrag?: string | undefined;
|
|
861
|
-
readonly strict: boolean;
|
|
862
862
|
readonly additionalComponents?: {
|
|
863
|
-
name: string;
|
|
864
863
|
as?: string | undefined;
|
|
865
864
|
attributes?: {
|
|
866
|
-
name: string;
|
|
867
865
|
as?: string | undefined;
|
|
868
866
|
controlled?: boolean | undefined;
|
|
869
867
|
defaultValue?: string | undefined;
|
|
868
|
+
name: string;
|
|
870
869
|
}[] | undefined;
|
|
871
870
|
selector?: string | undefined;
|
|
871
|
+
name: string;
|
|
872
872
|
}[] | undefined;
|
|
873
873
|
};
|
|
874
874
|
};
|
|
@@ -1515,27 +1515,27 @@ declare const plugins$3: {
|
|
|
1515
1515
|
};
|
|
1516
1516
|
declare const settings$3: {
|
|
1517
1517
|
"react-x": {
|
|
1518
|
+
readonly version: "detect";
|
|
1518
1519
|
readonly importSource: "react";
|
|
1519
|
-
readonly
|
|
1520
|
+
readonly strict: false;
|
|
1520
1521
|
readonly skipImportCheck: true;
|
|
1521
|
-
readonly
|
|
1522
|
+
readonly polymorphicPropName: "as";
|
|
1522
1523
|
readonly additionalHooks: {
|
|
1523
1524
|
readonly useEffect: ["useIsomorphicLayoutEffect"];
|
|
1524
1525
|
readonly useLayoutEffect: ["useIsomorphicLayoutEffect"];
|
|
1525
1526
|
};
|
|
1526
1527
|
readonly jsxPragma?: string | undefined;
|
|
1527
1528
|
readonly jsxPragmaFrag?: string | undefined;
|
|
1528
|
-
readonly strict: boolean;
|
|
1529
1529
|
readonly additionalComponents?: {
|
|
1530
|
-
name: string;
|
|
1531
1530
|
as?: string | undefined;
|
|
1532
1531
|
attributes?: {
|
|
1533
|
-
name: string;
|
|
1534
1532
|
as?: string | undefined;
|
|
1535
1533
|
controlled?: boolean | undefined;
|
|
1536
1534
|
defaultValue?: string | undefined;
|
|
1535
|
+
name: string;
|
|
1537
1536
|
}[] | undefined;
|
|
1538
1537
|
selector?: string | undefined;
|
|
1538
|
+
name: string;
|
|
1539
1539
|
}[] | undefined;
|
|
1540
1540
|
};
|
|
1541
1541
|
};
|
|
@@ -2177,27 +2177,27 @@ declare const plugins$2: {
|
|
|
2177
2177
|
};
|
|
2178
2178
|
declare const settings$2: {
|
|
2179
2179
|
"react-x": {
|
|
2180
|
+
readonly version: "detect";
|
|
2180
2181
|
readonly importSource: "react";
|
|
2181
|
-
readonly
|
|
2182
|
+
readonly strict: false;
|
|
2182
2183
|
readonly skipImportCheck: true;
|
|
2183
|
-
readonly
|
|
2184
|
+
readonly polymorphicPropName: "as";
|
|
2184
2185
|
readonly additionalHooks: {
|
|
2185
2186
|
readonly useEffect: ["useIsomorphicLayoutEffect"];
|
|
2186
2187
|
readonly useLayoutEffect: ["useIsomorphicLayoutEffect"];
|
|
2187
2188
|
};
|
|
2188
2189
|
readonly jsxPragma?: string | undefined;
|
|
2189
2190
|
readonly jsxPragmaFrag?: string | undefined;
|
|
2190
|
-
readonly strict: boolean;
|
|
2191
2191
|
readonly additionalComponents?: {
|
|
2192
|
-
name: string;
|
|
2193
2192
|
as?: string | undefined;
|
|
2194
2193
|
attributes?: {
|
|
2195
|
-
name: string;
|
|
2196
2194
|
as?: string | undefined;
|
|
2197
2195
|
controlled?: boolean | undefined;
|
|
2198
2196
|
defaultValue?: string | undefined;
|
|
2197
|
+
name: string;
|
|
2199
2198
|
}[] | undefined;
|
|
2200
2199
|
selector?: string | undefined;
|
|
2200
|
+
name: string;
|
|
2201
2201
|
}[] | undefined;
|
|
2202
2202
|
};
|
|
2203
2203
|
};
|
|
@@ -2838,27 +2838,27 @@ declare const plugins$1: {
|
|
|
2838
2838
|
};
|
|
2839
2839
|
declare const settings$1: {
|
|
2840
2840
|
"react-x": {
|
|
2841
|
+
readonly version: "detect";
|
|
2841
2842
|
readonly importSource: "react";
|
|
2842
|
-
readonly
|
|
2843
|
+
readonly strict: false;
|
|
2843
2844
|
readonly skipImportCheck: true;
|
|
2844
|
-
readonly
|
|
2845
|
+
readonly polymorphicPropName: "as";
|
|
2845
2846
|
readonly additionalHooks: {
|
|
2846
2847
|
readonly useEffect: ["useIsomorphicLayoutEffect"];
|
|
2847
2848
|
readonly useLayoutEffect: ["useIsomorphicLayoutEffect"];
|
|
2848
2849
|
};
|
|
2849
2850
|
readonly jsxPragma?: string | undefined;
|
|
2850
2851
|
readonly jsxPragmaFrag?: string | undefined;
|
|
2851
|
-
readonly strict: boolean;
|
|
2852
2852
|
readonly additionalComponents?: {
|
|
2853
|
-
name: string;
|
|
2854
2853
|
as?: string | undefined;
|
|
2855
2854
|
attributes?: {
|
|
2856
|
-
name: string;
|
|
2857
2855
|
as?: string | undefined;
|
|
2858
2856
|
controlled?: boolean | undefined;
|
|
2859
2857
|
defaultValue?: string | undefined;
|
|
2858
|
+
name: string;
|
|
2860
2859
|
}[] | undefined;
|
|
2861
2860
|
selector?: string | undefined;
|
|
2861
|
+
name: string;
|
|
2862
2862
|
}[] | undefined;
|
|
2863
2863
|
};
|
|
2864
2864
|
};
|
|
@@ -3221,27 +3221,27 @@ declare const plugins: {
|
|
|
3221
3221
|
};
|
|
3222
3222
|
declare const settings: {
|
|
3223
3223
|
"react-x": {
|
|
3224
|
+
readonly version: "detect";
|
|
3224
3225
|
readonly importSource: "react";
|
|
3225
|
-
readonly
|
|
3226
|
+
readonly strict: false;
|
|
3226
3227
|
readonly skipImportCheck: true;
|
|
3227
|
-
readonly
|
|
3228
|
+
readonly polymorphicPropName: "as";
|
|
3228
3229
|
readonly additionalHooks: {
|
|
3229
3230
|
readonly useEffect: ["useIsomorphicLayoutEffect"];
|
|
3230
3231
|
readonly useLayoutEffect: ["useIsomorphicLayoutEffect"];
|
|
3231
3232
|
};
|
|
3232
3233
|
readonly jsxPragma?: string | undefined;
|
|
3233
3234
|
readonly jsxPragmaFrag?: string | undefined;
|
|
3234
|
-
readonly strict: boolean;
|
|
3235
3235
|
readonly additionalComponents?: {
|
|
3236
|
-
name: string;
|
|
3237
3236
|
as?: string | undefined;
|
|
3238
3237
|
attributes?: {
|
|
3239
|
-
name: string;
|
|
3240
3238
|
as?: string | undefined;
|
|
3241
3239
|
controlled?: boolean | undefined;
|
|
3242
3240
|
defaultValue?: string | undefined;
|
|
3241
|
+
name: string;
|
|
3243
3242
|
}[] | undefined;
|
|
3244
3243
|
selector?: string | undefined;
|
|
3244
|
+
name: string;
|
|
3245
3245
|
}[] | undefined;
|
|
3246
3246
|
};
|
|
3247
3247
|
};
|
package/dist/index.d.ts
CHANGED
|
@@ -653,27 +653,27 @@ declare const plugins$6: {
|
|
|
653
653
|
};
|
|
654
654
|
declare const settings$5: {
|
|
655
655
|
"react-x": {
|
|
656
|
+
readonly version: "detect";
|
|
656
657
|
readonly importSource: "react";
|
|
657
|
-
readonly
|
|
658
|
+
readonly strict: false;
|
|
658
659
|
readonly skipImportCheck: true;
|
|
659
|
-
readonly
|
|
660
|
+
readonly polymorphicPropName: "as";
|
|
660
661
|
readonly additionalHooks: {
|
|
661
662
|
readonly useEffect: ["useIsomorphicLayoutEffect"];
|
|
662
663
|
readonly useLayoutEffect: ["useIsomorphicLayoutEffect"];
|
|
663
664
|
};
|
|
664
665
|
readonly jsxPragma?: string | undefined;
|
|
665
666
|
readonly jsxPragmaFrag?: string | undefined;
|
|
666
|
-
readonly strict: boolean;
|
|
667
667
|
readonly additionalComponents?: {
|
|
668
|
-
name: string;
|
|
669
668
|
as?: string | undefined;
|
|
670
669
|
attributes?: {
|
|
671
|
-
name: string;
|
|
672
670
|
as?: string | undefined;
|
|
673
671
|
controlled?: boolean | undefined;
|
|
674
672
|
defaultValue?: string | undefined;
|
|
673
|
+
name: string;
|
|
675
674
|
}[] | undefined;
|
|
676
675
|
selector?: string | undefined;
|
|
676
|
+
name: string;
|
|
677
677
|
}[] | undefined;
|
|
678
678
|
};
|
|
679
679
|
};
|
|
@@ -848,27 +848,27 @@ declare const plugins$4: {
|
|
|
848
848
|
};
|
|
849
849
|
declare const settings$4: {
|
|
850
850
|
"react-x": {
|
|
851
|
+
readonly version: "detect";
|
|
851
852
|
readonly importSource: "react";
|
|
852
|
-
readonly
|
|
853
|
+
readonly strict: false;
|
|
853
854
|
readonly skipImportCheck: true;
|
|
854
|
-
readonly
|
|
855
|
+
readonly polymorphicPropName: "as";
|
|
855
856
|
readonly additionalHooks: {
|
|
856
857
|
readonly useEffect: ["useIsomorphicLayoutEffect"];
|
|
857
858
|
readonly useLayoutEffect: ["useIsomorphicLayoutEffect"];
|
|
858
859
|
};
|
|
859
860
|
readonly jsxPragma?: string | undefined;
|
|
860
861
|
readonly jsxPragmaFrag?: string | undefined;
|
|
861
|
-
readonly strict: boolean;
|
|
862
862
|
readonly additionalComponents?: {
|
|
863
|
-
name: string;
|
|
864
863
|
as?: string | undefined;
|
|
865
864
|
attributes?: {
|
|
866
|
-
name: string;
|
|
867
865
|
as?: string | undefined;
|
|
868
866
|
controlled?: boolean | undefined;
|
|
869
867
|
defaultValue?: string | undefined;
|
|
868
|
+
name: string;
|
|
870
869
|
}[] | undefined;
|
|
871
870
|
selector?: string | undefined;
|
|
871
|
+
name: string;
|
|
872
872
|
}[] | undefined;
|
|
873
873
|
};
|
|
874
874
|
};
|
|
@@ -1515,27 +1515,27 @@ declare const plugins$3: {
|
|
|
1515
1515
|
};
|
|
1516
1516
|
declare const settings$3: {
|
|
1517
1517
|
"react-x": {
|
|
1518
|
+
readonly version: "detect";
|
|
1518
1519
|
readonly importSource: "react";
|
|
1519
|
-
readonly
|
|
1520
|
+
readonly strict: false;
|
|
1520
1521
|
readonly skipImportCheck: true;
|
|
1521
|
-
readonly
|
|
1522
|
+
readonly polymorphicPropName: "as";
|
|
1522
1523
|
readonly additionalHooks: {
|
|
1523
1524
|
readonly useEffect: ["useIsomorphicLayoutEffect"];
|
|
1524
1525
|
readonly useLayoutEffect: ["useIsomorphicLayoutEffect"];
|
|
1525
1526
|
};
|
|
1526
1527
|
readonly jsxPragma?: string | undefined;
|
|
1527
1528
|
readonly jsxPragmaFrag?: string | undefined;
|
|
1528
|
-
readonly strict: boolean;
|
|
1529
1529
|
readonly additionalComponents?: {
|
|
1530
|
-
name: string;
|
|
1531
1530
|
as?: string | undefined;
|
|
1532
1531
|
attributes?: {
|
|
1533
|
-
name: string;
|
|
1534
1532
|
as?: string | undefined;
|
|
1535
1533
|
controlled?: boolean | undefined;
|
|
1536
1534
|
defaultValue?: string | undefined;
|
|
1535
|
+
name: string;
|
|
1537
1536
|
}[] | undefined;
|
|
1538
1537
|
selector?: string | undefined;
|
|
1538
|
+
name: string;
|
|
1539
1539
|
}[] | undefined;
|
|
1540
1540
|
};
|
|
1541
1541
|
};
|
|
@@ -2177,27 +2177,27 @@ declare const plugins$2: {
|
|
|
2177
2177
|
};
|
|
2178
2178
|
declare const settings$2: {
|
|
2179
2179
|
"react-x": {
|
|
2180
|
+
readonly version: "detect";
|
|
2180
2181
|
readonly importSource: "react";
|
|
2181
|
-
readonly
|
|
2182
|
+
readonly strict: false;
|
|
2182
2183
|
readonly skipImportCheck: true;
|
|
2183
|
-
readonly
|
|
2184
|
+
readonly polymorphicPropName: "as";
|
|
2184
2185
|
readonly additionalHooks: {
|
|
2185
2186
|
readonly useEffect: ["useIsomorphicLayoutEffect"];
|
|
2186
2187
|
readonly useLayoutEffect: ["useIsomorphicLayoutEffect"];
|
|
2187
2188
|
};
|
|
2188
2189
|
readonly jsxPragma?: string | undefined;
|
|
2189
2190
|
readonly jsxPragmaFrag?: string | undefined;
|
|
2190
|
-
readonly strict: boolean;
|
|
2191
2191
|
readonly additionalComponents?: {
|
|
2192
|
-
name: string;
|
|
2193
2192
|
as?: string | undefined;
|
|
2194
2193
|
attributes?: {
|
|
2195
|
-
name: string;
|
|
2196
2194
|
as?: string | undefined;
|
|
2197
2195
|
controlled?: boolean | undefined;
|
|
2198
2196
|
defaultValue?: string | undefined;
|
|
2197
|
+
name: string;
|
|
2199
2198
|
}[] | undefined;
|
|
2200
2199
|
selector?: string | undefined;
|
|
2200
|
+
name: string;
|
|
2201
2201
|
}[] | undefined;
|
|
2202
2202
|
};
|
|
2203
2203
|
};
|
|
@@ -2838,27 +2838,27 @@ declare const plugins$1: {
|
|
|
2838
2838
|
};
|
|
2839
2839
|
declare const settings$1: {
|
|
2840
2840
|
"react-x": {
|
|
2841
|
+
readonly version: "detect";
|
|
2841
2842
|
readonly importSource: "react";
|
|
2842
|
-
readonly
|
|
2843
|
+
readonly strict: false;
|
|
2843
2844
|
readonly skipImportCheck: true;
|
|
2844
|
-
readonly
|
|
2845
|
+
readonly polymorphicPropName: "as";
|
|
2845
2846
|
readonly additionalHooks: {
|
|
2846
2847
|
readonly useEffect: ["useIsomorphicLayoutEffect"];
|
|
2847
2848
|
readonly useLayoutEffect: ["useIsomorphicLayoutEffect"];
|
|
2848
2849
|
};
|
|
2849
2850
|
readonly jsxPragma?: string | undefined;
|
|
2850
2851
|
readonly jsxPragmaFrag?: string | undefined;
|
|
2851
|
-
readonly strict: boolean;
|
|
2852
2852
|
readonly additionalComponents?: {
|
|
2853
|
-
name: string;
|
|
2854
2853
|
as?: string | undefined;
|
|
2855
2854
|
attributes?: {
|
|
2856
|
-
name: string;
|
|
2857
2855
|
as?: string | undefined;
|
|
2858
2856
|
controlled?: boolean | undefined;
|
|
2859
2857
|
defaultValue?: string | undefined;
|
|
2858
|
+
name: string;
|
|
2860
2859
|
}[] | undefined;
|
|
2861
2860
|
selector?: string | undefined;
|
|
2861
|
+
name: string;
|
|
2862
2862
|
}[] | undefined;
|
|
2863
2863
|
};
|
|
2864
2864
|
};
|
|
@@ -3221,27 +3221,27 @@ declare const plugins: {
|
|
|
3221
3221
|
};
|
|
3222
3222
|
declare const settings: {
|
|
3223
3223
|
"react-x": {
|
|
3224
|
+
readonly version: "detect";
|
|
3224
3225
|
readonly importSource: "react";
|
|
3225
|
-
readonly
|
|
3226
|
+
readonly strict: false;
|
|
3226
3227
|
readonly skipImportCheck: true;
|
|
3227
|
-
readonly
|
|
3228
|
+
readonly polymorphicPropName: "as";
|
|
3228
3229
|
readonly additionalHooks: {
|
|
3229
3230
|
readonly useEffect: ["useIsomorphicLayoutEffect"];
|
|
3230
3231
|
readonly useLayoutEffect: ["useIsomorphicLayoutEffect"];
|
|
3231
3232
|
};
|
|
3232
3233
|
readonly jsxPragma?: string | undefined;
|
|
3233
3234
|
readonly jsxPragmaFrag?: string | undefined;
|
|
3234
|
-
readonly strict: boolean;
|
|
3235
3235
|
readonly additionalComponents?: {
|
|
3236
|
-
name: string;
|
|
3237
3236
|
as?: string | undefined;
|
|
3238
3237
|
attributes?: {
|
|
3239
|
-
name: string;
|
|
3240
3238
|
as?: string | undefined;
|
|
3241
3239
|
controlled?: boolean | undefined;
|
|
3242
3240
|
defaultValue?: string | undefined;
|
|
3241
|
+
name: string;
|
|
3243
3242
|
}[] | undefined;
|
|
3244
3243
|
selector?: string | undefined;
|
|
3244
|
+
name: string;
|
|
3245
3245
|
}[] | undefined;
|
|
3246
3246
|
};
|
|
3247
3247
|
};
|
package/dist/index.js
CHANGED
package/dist/index.mjs
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@eslint-react/eslint-plugin",
|
|
3
|
-
"version": "1.43.
|
|
3
|
+
"version": "1.43.2-next.1",
|
|
4
4
|
"description": "A series of future-proof ESLint rules for React and friends.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"react",
|
|
@@ -50,15 +50,15 @@
|
|
|
50
50
|
"@typescript-eslint/type-utils": "^8.29.1",
|
|
51
51
|
"@typescript-eslint/types": "^8.29.1",
|
|
52
52
|
"@typescript-eslint/utils": "^8.29.1",
|
|
53
|
-
"@eslint-react/eff": "1.43.
|
|
54
|
-
"@eslint-react/kit": "1.43.
|
|
55
|
-
"@eslint-react/shared": "1.43.
|
|
56
|
-
"eslint-plugin-react-
|
|
57
|
-
"eslint-plugin-react-
|
|
58
|
-
"eslint-plugin-react-hooks-extra": "1.43.
|
|
59
|
-
"eslint-plugin-react-
|
|
60
|
-
"eslint-plugin-react-
|
|
61
|
-
"eslint-plugin-react-
|
|
53
|
+
"@eslint-react/eff": "1.43.2-next.1",
|
|
54
|
+
"@eslint-react/kit": "1.43.2-next.1",
|
|
55
|
+
"@eslint-react/shared": "1.43.2-next.1",
|
|
56
|
+
"eslint-plugin-react-dom": "1.43.2-next.1",
|
|
57
|
+
"eslint-plugin-react-debug": "1.43.2-next.1",
|
|
58
|
+
"eslint-plugin-react-hooks-extra": "1.43.2-next.1",
|
|
59
|
+
"eslint-plugin-react-x": "1.43.2-next.1",
|
|
60
|
+
"eslint-plugin-react-naming-convention": "1.43.2-next.1",
|
|
61
|
+
"eslint-plugin-react-web-api": "1.43.2-next.1"
|
|
62
62
|
},
|
|
63
63
|
"devDependencies": {
|
|
64
64
|
"tsup": "^8.4.0",
|