@eslint-react/eslint-plugin 1.15.2-next.2 → 1.15.3-next.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/dist/index.d.mts +30 -8
- package/dist/index.d.ts +30 -8
- package/dist/index.js +6 -5
- package/dist/index.mjs +6 -5
- package/package.json +14 -14
package/dist/index.d.mts
CHANGED
|
@@ -18,6 +18,7 @@ declare const _default: {
|
|
|
18
18
|
"avoid-shorthand-boolean": _typescript_eslint_utils_ts_eslint.RuleModule<"avoidShorthandBoolean", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
19
19
|
"avoid-shorthand-fragment": _typescript_eslint_utils_ts_eslint.RuleModule<"avoidShorthandFragment", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
20
20
|
"ensure-forward-ref-using-ref": _typescript_eslint_utils_ts_eslint.RuleModule<"ensureForwardRefUsingRef", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
21
|
+
"jsx-uses-vars": _typescript_eslint_utils_ts_eslint.RuleModule<"jsxUsesVars", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
21
22
|
"no-access-state-in-setstate": _typescript_eslint_utils_ts_eslint.RuleModule<"noAccessStateInSetstate", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
22
23
|
"no-array-index-key": _typescript_eslint_utils_ts_eslint.RuleModule<"noArrayIndexKey", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
23
24
|
"no-children-count": _typescript_eslint_utils_ts_eslint.RuleModule<"noChildrenCount", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
@@ -176,6 +177,7 @@ declare const _default: {
|
|
|
176
177
|
};
|
|
177
178
|
readonly rules: {
|
|
178
179
|
readonly "@eslint-react/ensure-forward-ref-using-ref": "warn";
|
|
180
|
+
readonly "@eslint-react/jsx-uses-vars": "warn";
|
|
179
181
|
readonly "@eslint-react/no-access-state-in-setstate": "error";
|
|
180
182
|
readonly "@eslint-react/no-array-index-key": "warn";
|
|
181
183
|
readonly "@eslint-react/no-children-count": "warn";
|
|
@@ -223,6 +225,7 @@ declare const _default: {
|
|
|
223
225
|
readonly plugins: readonly ["@eslint-react"];
|
|
224
226
|
readonly rules: {
|
|
225
227
|
readonly "@eslint-react/ensure-forward-ref-using-ref": "warn";
|
|
228
|
+
readonly "@eslint-react/jsx-uses-vars": "warn";
|
|
226
229
|
readonly "@eslint-react/no-access-state-in-setstate": "error";
|
|
227
230
|
readonly "@eslint-react/no-array-index-key": "warn";
|
|
228
231
|
readonly "@eslint-react/no-children-count": "warn";
|
|
@@ -277,6 +280,7 @@ declare const _default: {
|
|
|
277
280
|
"avoid-shorthand-boolean": _typescript_eslint_utils_ts_eslint.RuleModule<"avoidShorthandBoolean", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
278
281
|
"avoid-shorthand-fragment": _typescript_eslint_utils_ts_eslint.RuleModule<"avoidShorthandFragment", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
279
282
|
"ensure-forward-ref-using-ref": _typescript_eslint_utils_ts_eslint.RuleModule<"ensureForwardRefUsingRef", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
283
|
+
"jsx-uses-vars": _typescript_eslint_utils_ts_eslint.RuleModule<"jsxUsesVars", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
280
284
|
"no-access-state-in-setstate": _typescript_eslint_utils_ts_eslint.RuleModule<"noAccessStateInSetstate", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
281
285
|
"no-array-index-key": _typescript_eslint_utils_ts_eslint.RuleModule<"noArrayIndexKey", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
282
286
|
"no-children-count": _typescript_eslint_utils_ts_eslint.RuleModule<"noChildrenCount", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
@@ -478,6 +482,7 @@ declare const _default: {
|
|
|
478
482
|
"avoid-shorthand-boolean": _typescript_eslint_utils_ts_eslint.RuleModule<"avoidShorthandBoolean", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
479
483
|
"avoid-shorthand-fragment": _typescript_eslint_utils_ts_eslint.RuleModule<"avoidShorthandFragment", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
480
484
|
"ensure-forward-ref-using-ref": _typescript_eslint_utils_ts_eslint.RuleModule<"ensureForwardRefUsingRef", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
485
|
+
"jsx-uses-vars": _typescript_eslint_utils_ts_eslint.RuleModule<"jsxUsesVars", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
481
486
|
"no-access-state-in-setstate": _typescript_eslint_utils_ts_eslint.RuleModule<"noAccessStateInSetstate", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
482
487
|
"no-array-index-key": _typescript_eslint_utils_ts_eslint.RuleModule<"noArrayIndexKey", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
483
488
|
"no-children-count": _typescript_eslint_utils_ts_eslint.RuleModule<"noChildrenCount", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
@@ -695,6 +700,7 @@ declare const _default: {
|
|
|
695
700
|
"avoid-shorthand-boolean": _typescript_eslint_utils_ts_eslint.RuleModule<"avoidShorthandBoolean", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
696
701
|
"avoid-shorthand-fragment": _typescript_eslint_utils_ts_eslint.RuleModule<"avoidShorthandFragment", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
697
702
|
"ensure-forward-ref-using-ref": _typescript_eslint_utils_ts_eslint.RuleModule<"ensureForwardRefUsingRef", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
703
|
+
"jsx-uses-vars": _typescript_eslint_utils_ts_eslint.RuleModule<"jsxUsesVars", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
698
704
|
"no-access-state-in-setstate": _typescript_eslint_utils_ts_eslint.RuleModule<"noAccessStateInSetstate", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
699
705
|
"no-array-index-key": _typescript_eslint_utils_ts_eslint.RuleModule<"noArrayIndexKey", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
700
706
|
"no-children-count": _typescript_eslint_utils_ts_eslint.RuleModule<"noChildrenCount", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
@@ -871,6 +877,7 @@ declare const _default: {
|
|
|
871
877
|
readonly "@eslint-react/dom/no-unsafe-iframe-sandbox": "warn";
|
|
872
878
|
readonly "@eslint-react/dom/no-unsafe-target-blank": "warn";
|
|
873
879
|
readonly "@eslint-react/ensure-forward-ref-using-ref": "warn";
|
|
880
|
+
readonly "@eslint-react/jsx-uses-vars": "warn";
|
|
874
881
|
readonly "@eslint-react/no-access-state-in-setstate": "error";
|
|
875
882
|
readonly "@eslint-react/no-array-index-key": "warn";
|
|
876
883
|
readonly "@eslint-react/no-children-count": "warn";
|
|
@@ -936,6 +943,7 @@ declare const _default: {
|
|
|
936
943
|
readonly "@eslint-react/dom/no-unsafe-iframe-sandbox": "warn";
|
|
937
944
|
readonly "@eslint-react/dom/no-unsafe-target-blank": "warn";
|
|
938
945
|
readonly "@eslint-react/ensure-forward-ref-using-ref": "warn";
|
|
946
|
+
readonly "@eslint-react/jsx-uses-vars": "warn";
|
|
939
947
|
readonly "@eslint-react/no-access-state-in-setstate": "error";
|
|
940
948
|
readonly "@eslint-react/no-array-index-key": "warn";
|
|
941
949
|
readonly "@eslint-react/no-children-count": "warn";
|
|
@@ -990,6 +998,7 @@ declare const _default: {
|
|
|
990
998
|
"avoid-shorthand-boolean": _typescript_eslint_utils_ts_eslint.RuleModule<"avoidShorthandBoolean", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
991
999
|
"avoid-shorthand-fragment": _typescript_eslint_utils_ts_eslint.RuleModule<"avoidShorthandFragment", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
992
1000
|
"ensure-forward-ref-using-ref": _typescript_eslint_utils_ts_eslint.RuleModule<"ensureForwardRefUsingRef", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
1001
|
+
"jsx-uses-vars": _typescript_eslint_utils_ts_eslint.RuleModule<"jsxUsesVars", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
993
1002
|
"no-access-state-in-setstate": _typescript_eslint_utils_ts_eslint.RuleModule<"noAccessStateInSetstate", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
994
1003
|
"no-array-index-key": _typescript_eslint_utils_ts_eslint.RuleModule<"noArrayIndexKey", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
995
1004
|
"no-children-count": _typescript_eslint_utils_ts_eslint.RuleModule<"noChildrenCount", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
@@ -1167,6 +1176,7 @@ declare const _default: {
|
|
|
1167
1176
|
readonly "@eslint-react/dom/no-unsafe-iframe-sandbox": "warn";
|
|
1168
1177
|
readonly "@eslint-react/dom/no-unsafe-target-blank": "warn";
|
|
1169
1178
|
readonly "@eslint-react/ensure-forward-ref-using-ref": "warn";
|
|
1179
|
+
readonly "@eslint-react/jsx-uses-vars": "warn";
|
|
1170
1180
|
readonly "@eslint-react/no-access-state-in-setstate": "error";
|
|
1171
1181
|
readonly "@eslint-react/no-array-index-key": "warn";
|
|
1172
1182
|
readonly "@eslint-react/no-children-count": "warn";
|
|
@@ -1233,6 +1243,7 @@ declare const _default: {
|
|
|
1233
1243
|
readonly "@eslint-react/dom/no-unsafe-iframe-sandbox": "warn";
|
|
1234
1244
|
readonly "@eslint-react/dom/no-unsafe-target-blank": "warn";
|
|
1235
1245
|
readonly "@eslint-react/ensure-forward-ref-using-ref": "warn";
|
|
1246
|
+
readonly "@eslint-react/jsx-uses-vars": "warn";
|
|
1236
1247
|
readonly "@eslint-react/no-access-state-in-setstate": "error";
|
|
1237
1248
|
readonly "@eslint-react/no-array-index-key": "warn";
|
|
1238
1249
|
readonly "@eslint-react/no-children-count": "warn";
|
|
@@ -1287,6 +1298,7 @@ declare const _default: {
|
|
|
1287
1298
|
"avoid-shorthand-boolean": _typescript_eslint_utils_ts_eslint.RuleModule<"avoidShorthandBoolean", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
1288
1299
|
"avoid-shorthand-fragment": _typescript_eslint_utils_ts_eslint.RuleModule<"avoidShorthandFragment", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
1289
1300
|
"ensure-forward-ref-using-ref": _typescript_eslint_utils_ts_eslint.RuleModule<"ensureForwardRefUsingRef", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
1301
|
+
"jsx-uses-vars": _typescript_eslint_utils_ts_eslint.RuleModule<"jsxUsesVars", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
1290
1302
|
"no-access-state-in-setstate": _typescript_eslint_utils_ts_eslint.RuleModule<"noAccessStateInSetstate", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
1291
1303
|
"no-array-index-key": _typescript_eslint_utils_ts_eslint.RuleModule<"noArrayIndexKey", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
1292
1304
|
"no-children-count": _typescript_eslint_utils_ts_eslint.RuleModule<"noChildrenCount", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
@@ -1504,6 +1516,7 @@ declare const _default: {
|
|
|
1504
1516
|
"avoid-shorthand-boolean": _typescript_eslint_utils_ts_eslint.RuleModule<"avoidShorthandBoolean", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
1505
1517
|
"avoid-shorthand-fragment": _typescript_eslint_utils_ts_eslint.RuleModule<"avoidShorthandFragment", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
1506
1518
|
"ensure-forward-ref-using-ref": _typescript_eslint_utils_ts_eslint.RuleModule<"ensureForwardRefUsingRef", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
1519
|
+
"jsx-uses-vars": _typescript_eslint_utils_ts_eslint.RuleModule<"jsxUsesVars", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
1507
1520
|
"no-access-state-in-setstate": _typescript_eslint_utils_ts_eslint.RuleModule<"noAccessStateInSetstate", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
1508
1521
|
"no-array-index-key": _typescript_eslint_utils_ts_eslint.RuleModule<"noArrayIndexKey", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
1509
1522
|
"no-children-count": _typescript_eslint_utils_ts_eslint.RuleModule<"noChildrenCount", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
@@ -1707,6 +1720,7 @@ declare const _default: {
|
|
|
1707
1720
|
"avoid-shorthand-boolean": _typescript_eslint_utils_ts_eslint.RuleModule<"avoidShorthandBoolean", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
1708
1721
|
"avoid-shorthand-fragment": _typescript_eslint_utils_ts_eslint.RuleModule<"avoidShorthandFragment", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
1709
1722
|
"ensure-forward-ref-using-ref": _typescript_eslint_utils_ts_eslint.RuleModule<"ensureForwardRefUsingRef", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
1723
|
+
"jsx-uses-vars": _typescript_eslint_utils_ts_eslint.RuleModule<"jsxUsesVars", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
1710
1724
|
"no-access-state-in-setstate": _typescript_eslint_utils_ts_eslint.RuleModule<"noAccessStateInSetstate", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
1711
1725
|
"no-array-index-key": _typescript_eslint_utils_ts_eslint.RuleModule<"noArrayIndexKey", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
1712
1726
|
"no-children-count": _typescript_eslint_utils_ts_eslint.RuleModule<"noChildrenCount", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
@@ -1904,6 +1918,7 @@ declare const _default: {
|
|
|
1904
1918
|
"avoid-shorthand-boolean": _typescript_eslint_utils_ts_eslint.RuleModule<"avoidShorthandBoolean", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
1905
1919
|
"avoid-shorthand-fragment": _typescript_eslint_utils_ts_eslint.RuleModule<"avoidShorthandFragment", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
1906
1920
|
"ensure-forward-ref-using-ref": _typescript_eslint_utils_ts_eslint.RuleModule<"ensureForwardRefUsingRef", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
1921
|
+
"jsx-uses-vars": _typescript_eslint_utils_ts_eslint.RuleModule<"jsxUsesVars", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
1907
1922
|
"no-access-state-in-setstate": _typescript_eslint_utils_ts_eslint.RuleModule<"noAccessStateInSetstate", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
1908
1923
|
"no-array-index-key": _typescript_eslint_utils_ts_eslint.RuleModule<"noArrayIndexKey", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
1909
1924
|
"no-children-count": _typescript_eslint_utils_ts_eslint.RuleModule<"noChildrenCount", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
@@ -2061,7 +2076,10 @@ declare const _default: {
|
|
|
2061
2076
|
};
|
|
2062
2077
|
};
|
|
2063
2078
|
readonly rules: {
|
|
2079
|
+
readonly "@eslint-react/avoid-shorthand-boolean": "warn";
|
|
2080
|
+
readonly "@eslint-react/avoid-shorthand-fragment": "warn";
|
|
2064
2081
|
readonly "@eslint-react/ensure-forward-ref-using-ref": "warn";
|
|
2082
|
+
readonly "@eslint-react/jsx-uses-vars": "warn";
|
|
2065
2083
|
readonly "@eslint-react/no-access-state-in-setstate": "error";
|
|
2066
2084
|
readonly "@eslint-react/no-array-index-key": "warn";
|
|
2067
2085
|
readonly "@eslint-react/no-children-count": "warn";
|
|
@@ -2102,8 +2120,6 @@ declare const _default: {
|
|
|
2102
2120
|
readonly "@eslint-react/prefer-destructuring-assignment": "warn";
|
|
2103
2121
|
readonly "@eslint-react/prefer-shorthand-boolean": "warn";
|
|
2104
2122
|
readonly "@eslint-react/prefer-shorthand-fragment": "warn";
|
|
2105
|
-
readonly "@eslint-react/avoid-shorthand-boolean": "warn";
|
|
2106
|
-
readonly "@eslint-react/avoid-shorthand-fragment": "warn";
|
|
2107
2123
|
readonly "@eslint-react/dom/no-children-in-void-dom-elements": "warn";
|
|
2108
2124
|
readonly "@eslint-react/dom/no-dangerously-set-innerhtml": "warn";
|
|
2109
2125
|
readonly "@eslint-react/dom/no-dangerously-set-innerhtml-with-children": "error";
|
|
@@ -2144,7 +2160,10 @@ declare const _default: {
|
|
|
2144
2160
|
readonly "all-legacy": {
|
|
2145
2161
|
readonly plugins: readonly ["@eslint-react"];
|
|
2146
2162
|
readonly rules: {
|
|
2163
|
+
readonly "@eslint-react/avoid-shorthand-boolean": "warn";
|
|
2164
|
+
readonly "@eslint-react/avoid-shorthand-fragment": "warn";
|
|
2147
2165
|
readonly "@eslint-react/ensure-forward-ref-using-ref": "warn";
|
|
2166
|
+
readonly "@eslint-react/jsx-uses-vars": "warn";
|
|
2148
2167
|
readonly "@eslint-react/no-access-state-in-setstate": "error";
|
|
2149
2168
|
readonly "@eslint-react/no-array-index-key": "warn";
|
|
2150
2169
|
readonly "@eslint-react/no-children-count": "warn";
|
|
@@ -2185,8 +2204,6 @@ declare const _default: {
|
|
|
2185
2204
|
readonly "@eslint-react/prefer-destructuring-assignment": "warn";
|
|
2186
2205
|
readonly "@eslint-react/prefer-shorthand-boolean": "warn";
|
|
2187
2206
|
readonly "@eslint-react/prefer-shorthand-fragment": "warn";
|
|
2188
|
-
readonly "@eslint-react/avoid-shorthand-boolean": "warn";
|
|
2189
|
-
readonly "@eslint-react/avoid-shorthand-fragment": "warn";
|
|
2190
2207
|
readonly "@eslint-react/dom/no-children-in-void-dom-elements": "warn";
|
|
2191
2208
|
readonly "@eslint-react/dom/no-dangerously-set-innerhtml": "warn";
|
|
2192
2209
|
readonly "@eslint-react/dom/no-dangerously-set-innerhtml-with-children": "error";
|
|
@@ -2235,6 +2252,7 @@ declare const _default: {
|
|
|
2235
2252
|
"avoid-shorthand-boolean": _typescript_eslint_utils_ts_eslint.RuleModule<"avoidShorthandBoolean", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
2236
2253
|
"avoid-shorthand-fragment": _typescript_eslint_utils_ts_eslint.RuleModule<"avoidShorthandFragment", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
2237
2254
|
"ensure-forward-ref-using-ref": _typescript_eslint_utils_ts_eslint.RuleModule<"ensureForwardRefUsingRef", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
2255
|
+
"jsx-uses-vars": _typescript_eslint_utils_ts_eslint.RuleModule<"jsxUsesVars", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
2238
2256
|
"no-access-state-in-setstate": _typescript_eslint_utils_ts_eslint.RuleModule<"noAccessStateInSetstate", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
2239
2257
|
"no-array-index-key": _typescript_eslint_utils_ts_eslint.RuleModule<"noArrayIndexKey", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
2240
2258
|
"no-children-count": _typescript_eslint_utils_ts_eslint.RuleModule<"noChildrenCount", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
@@ -2392,7 +2410,10 @@ declare const _default: {
|
|
|
2392
2410
|
};
|
|
2393
2411
|
};
|
|
2394
2412
|
readonly rules: {
|
|
2413
|
+
readonly "@eslint-react/avoid-shorthand-boolean"?: "off";
|
|
2414
|
+
readonly "@eslint-react/avoid-shorthand-fragment"?: "off";
|
|
2395
2415
|
readonly "@eslint-react/ensure-forward-ref-using-ref"?: "off";
|
|
2416
|
+
readonly "@eslint-react/jsx-uses-vars"?: "off";
|
|
2396
2417
|
readonly "@eslint-react/no-access-state-in-setstate"?: "off";
|
|
2397
2418
|
readonly "@eslint-react/no-array-index-key"?: "off";
|
|
2398
2419
|
readonly "@eslint-react/no-children-count"?: "off";
|
|
@@ -2433,8 +2454,6 @@ declare const _default: {
|
|
|
2433
2454
|
readonly "@eslint-react/prefer-destructuring-assignment"?: "off";
|
|
2434
2455
|
readonly "@eslint-react/prefer-shorthand-boolean"?: "off";
|
|
2435
2456
|
readonly "@eslint-react/prefer-shorthand-fragment"?: "off";
|
|
2436
|
-
readonly "@eslint-react/avoid-shorthand-boolean"?: "off";
|
|
2437
|
-
readonly "@eslint-react/avoid-shorthand-fragment"?: "off";
|
|
2438
2457
|
readonly "@eslint-react/dom/no-children-in-void-dom-elements"?: "off";
|
|
2439
2458
|
readonly "@eslint-react/dom/no-dangerously-set-innerhtml"?: "off";
|
|
2440
2459
|
readonly "@eslint-react/dom/no-dangerously-set-innerhtml-with-children"?: "off";
|
|
@@ -2475,7 +2494,10 @@ declare const _default: {
|
|
|
2475
2494
|
readonly "off-legacy": {
|
|
2476
2495
|
readonly plugins: readonly ["@eslint-react"];
|
|
2477
2496
|
readonly rules: {
|
|
2497
|
+
readonly "@eslint-react/avoid-shorthand-boolean"?: "off";
|
|
2498
|
+
readonly "@eslint-react/avoid-shorthand-fragment"?: "off";
|
|
2478
2499
|
readonly "@eslint-react/ensure-forward-ref-using-ref"?: "off";
|
|
2500
|
+
readonly "@eslint-react/jsx-uses-vars"?: "off";
|
|
2479
2501
|
readonly "@eslint-react/no-access-state-in-setstate"?: "off";
|
|
2480
2502
|
readonly "@eslint-react/no-array-index-key"?: "off";
|
|
2481
2503
|
readonly "@eslint-react/no-children-count"?: "off";
|
|
@@ -2516,8 +2538,6 @@ declare const _default: {
|
|
|
2516
2538
|
readonly "@eslint-react/prefer-destructuring-assignment"?: "off";
|
|
2517
2539
|
readonly "@eslint-react/prefer-shorthand-boolean"?: "off";
|
|
2518
2540
|
readonly "@eslint-react/prefer-shorthand-fragment"?: "off";
|
|
2519
|
-
readonly "@eslint-react/avoid-shorthand-boolean"?: "off";
|
|
2520
|
-
readonly "@eslint-react/avoid-shorthand-fragment"?: "off";
|
|
2521
2541
|
readonly "@eslint-react/dom/no-children-in-void-dom-elements"?: "off";
|
|
2522
2542
|
readonly "@eslint-react/dom/no-dangerously-set-innerhtml"?: "off";
|
|
2523
2543
|
readonly "@eslint-react/dom/no-dangerously-set-innerhtml-with-children"?: "off";
|
|
@@ -2567,6 +2587,7 @@ declare const _default: {
|
|
|
2567
2587
|
"avoid-shorthand-boolean": _typescript_eslint_utils_ts_eslint.RuleModule<"avoidShorthandBoolean", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
2568
2588
|
"avoid-shorthand-fragment": _typescript_eslint_utils_ts_eslint.RuleModule<"avoidShorthandFragment", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
2569
2589
|
"ensure-forward-ref-using-ref": _typescript_eslint_utils_ts_eslint.RuleModule<"ensureForwardRefUsingRef", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
2590
|
+
"jsx-uses-vars": _typescript_eslint_utils_ts_eslint.RuleModule<"jsxUsesVars", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
2570
2591
|
"no-access-state-in-setstate": _typescript_eslint_utils_ts_eslint.RuleModule<"noAccessStateInSetstate", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
2571
2592
|
"no-array-index-key": _typescript_eslint_utils_ts_eslint.RuleModule<"noArrayIndexKey", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
2572
2593
|
"no-children-count": _typescript_eslint_utils_ts_eslint.RuleModule<"noChildrenCount", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
@@ -2824,6 +2845,7 @@ declare const _default: {
|
|
|
2824
2845
|
readonly "avoid-shorthand-boolean": _typescript_eslint_utils_ts_eslint.RuleModule<"avoidShorthandBoolean", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
2825
2846
|
readonly "avoid-shorthand-fragment": _typescript_eslint_utils_ts_eslint.RuleModule<"avoidShorthandFragment", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
2826
2847
|
readonly "ensure-forward-ref-using-ref": _typescript_eslint_utils_ts_eslint.RuleModule<"ensureForwardRefUsingRef", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
2848
|
+
readonly "jsx-uses-vars": _typescript_eslint_utils_ts_eslint.RuleModule<"jsxUsesVars", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
2827
2849
|
readonly "no-access-state-in-setstate": _typescript_eslint_utils_ts_eslint.RuleModule<"noAccessStateInSetstate", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
2828
2850
|
readonly "no-array-index-key": _typescript_eslint_utils_ts_eslint.RuleModule<"noArrayIndexKey", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
2829
2851
|
readonly "no-children-count": _typescript_eslint_utils_ts_eslint.RuleModule<"noChildrenCount", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
package/dist/index.d.ts
CHANGED
|
@@ -18,6 +18,7 @@ declare const _default: {
|
|
|
18
18
|
"avoid-shorthand-boolean": _typescript_eslint_utils_ts_eslint.RuleModule<"avoidShorthandBoolean", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
19
19
|
"avoid-shorthand-fragment": _typescript_eslint_utils_ts_eslint.RuleModule<"avoidShorthandFragment", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
20
20
|
"ensure-forward-ref-using-ref": _typescript_eslint_utils_ts_eslint.RuleModule<"ensureForwardRefUsingRef", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
21
|
+
"jsx-uses-vars": _typescript_eslint_utils_ts_eslint.RuleModule<"jsxUsesVars", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
21
22
|
"no-access-state-in-setstate": _typescript_eslint_utils_ts_eslint.RuleModule<"noAccessStateInSetstate", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
22
23
|
"no-array-index-key": _typescript_eslint_utils_ts_eslint.RuleModule<"noArrayIndexKey", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
23
24
|
"no-children-count": _typescript_eslint_utils_ts_eslint.RuleModule<"noChildrenCount", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
@@ -176,6 +177,7 @@ declare const _default: {
|
|
|
176
177
|
};
|
|
177
178
|
readonly rules: {
|
|
178
179
|
readonly "@eslint-react/ensure-forward-ref-using-ref": "warn";
|
|
180
|
+
readonly "@eslint-react/jsx-uses-vars": "warn";
|
|
179
181
|
readonly "@eslint-react/no-access-state-in-setstate": "error";
|
|
180
182
|
readonly "@eslint-react/no-array-index-key": "warn";
|
|
181
183
|
readonly "@eslint-react/no-children-count": "warn";
|
|
@@ -223,6 +225,7 @@ declare const _default: {
|
|
|
223
225
|
readonly plugins: readonly ["@eslint-react"];
|
|
224
226
|
readonly rules: {
|
|
225
227
|
readonly "@eslint-react/ensure-forward-ref-using-ref": "warn";
|
|
228
|
+
readonly "@eslint-react/jsx-uses-vars": "warn";
|
|
226
229
|
readonly "@eslint-react/no-access-state-in-setstate": "error";
|
|
227
230
|
readonly "@eslint-react/no-array-index-key": "warn";
|
|
228
231
|
readonly "@eslint-react/no-children-count": "warn";
|
|
@@ -277,6 +280,7 @@ declare const _default: {
|
|
|
277
280
|
"avoid-shorthand-boolean": _typescript_eslint_utils_ts_eslint.RuleModule<"avoidShorthandBoolean", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
278
281
|
"avoid-shorthand-fragment": _typescript_eslint_utils_ts_eslint.RuleModule<"avoidShorthandFragment", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
279
282
|
"ensure-forward-ref-using-ref": _typescript_eslint_utils_ts_eslint.RuleModule<"ensureForwardRefUsingRef", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
283
|
+
"jsx-uses-vars": _typescript_eslint_utils_ts_eslint.RuleModule<"jsxUsesVars", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
280
284
|
"no-access-state-in-setstate": _typescript_eslint_utils_ts_eslint.RuleModule<"noAccessStateInSetstate", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
281
285
|
"no-array-index-key": _typescript_eslint_utils_ts_eslint.RuleModule<"noArrayIndexKey", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
282
286
|
"no-children-count": _typescript_eslint_utils_ts_eslint.RuleModule<"noChildrenCount", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
@@ -478,6 +482,7 @@ declare const _default: {
|
|
|
478
482
|
"avoid-shorthand-boolean": _typescript_eslint_utils_ts_eslint.RuleModule<"avoidShorthandBoolean", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
479
483
|
"avoid-shorthand-fragment": _typescript_eslint_utils_ts_eslint.RuleModule<"avoidShorthandFragment", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
480
484
|
"ensure-forward-ref-using-ref": _typescript_eslint_utils_ts_eslint.RuleModule<"ensureForwardRefUsingRef", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
485
|
+
"jsx-uses-vars": _typescript_eslint_utils_ts_eslint.RuleModule<"jsxUsesVars", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
481
486
|
"no-access-state-in-setstate": _typescript_eslint_utils_ts_eslint.RuleModule<"noAccessStateInSetstate", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
482
487
|
"no-array-index-key": _typescript_eslint_utils_ts_eslint.RuleModule<"noArrayIndexKey", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
483
488
|
"no-children-count": _typescript_eslint_utils_ts_eslint.RuleModule<"noChildrenCount", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
@@ -695,6 +700,7 @@ declare const _default: {
|
|
|
695
700
|
"avoid-shorthand-boolean": _typescript_eslint_utils_ts_eslint.RuleModule<"avoidShorthandBoolean", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
696
701
|
"avoid-shorthand-fragment": _typescript_eslint_utils_ts_eslint.RuleModule<"avoidShorthandFragment", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
697
702
|
"ensure-forward-ref-using-ref": _typescript_eslint_utils_ts_eslint.RuleModule<"ensureForwardRefUsingRef", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
703
|
+
"jsx-uses-vars": _typescript_eslint_utils_ts_eslint.RuleModule<"jsxUsesVars", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
698
704
|
"no-access-state-in-setstate": _typescript_eslint_utils_ts_eslint.RuleModule<"noAccessStateInSetstate", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
699
705
|
"no-array-index-key": _typescript_eslint_utils_ts_eslint.RuleModule<"noArrayIndexKey", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
700
706
|
"no-children-count": _typescript_eslint_utils_ts_eslint.RuleModule<"noChildrenCount", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
@@ -871,6 +877,7 @@ declare const _default: {
|
|
|
871
877
|
readonly "@eslint-react/dom/no-unsafe-iframe-sandbox": "warn";
|
|
872
878
|
readonly "@eslint-react/dom/no-unsafe-target-blank": "warn";
|
|
873
879
|
readonly "@eslint-react/ensure-forward-ref-using-ref": "warn";
|
|
880
|
+
readonly "@eslint-react/jsx-uses-vars": "warn";
|
|
874
881
|
readonly "@eslint-react/no-access-state-in-setstate": "error";
|
|
875
882
|
readonly "@eslint-react/no-array-index-key": "warn";
|
|
876
883
|
readonly "@eslint-react/no-children-count": "warn";
|
|
@@ -936,6 +943,7 @@ declare const _default: {
|
|
|
936
943
|
readonly "@eslint-react/dom/no-unsafe-iframe-sandbox": "warn";
|
|
937
944
|
readonly "@eslint-react/dom/no-unsafe-target-blank": "warn";
|
|
938
945
|
readonly "@eslint-react/ensure-forward-ref-using-ref": "warn";
|
|
946
|
+
readonly "@eslint-react/jsx-uses-vars": "warn";
|
|
939
947
|
readonly "@eslint-react/no-access-state-in-setstate": "error";
|
|
940
948
|
readonly "@eslint-react/no-array-index-key": "warn";
|
|
941
949
|
readonly "@eslint-react/no-children-count": "warn";
|
|
@@ -990,6 +998,7 @@ declare const _default: {
|
|
|
990
998
|
"avoid-shorthand-boolean": _typescript_eslint_utils_ts_eslint.RuleModule<"avoidShorthandBoolean", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
991
999
|
"avoid-shorthand-fragment": _typescript_eslint_utils_ts_eslint.RuleModule<"avoidShorthandFragment", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
992
1000
|
"ensure-forward-ref-using-ref": _typescript_eslint_utils_ts_eslint.RuleModule<"ensureForwardRefUsingRef", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
1001
|
+
"jsx-uses-vars": _typescript_eslint_utils_ts_eslint.RuleModule<"jsxUsesVars", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
993
1002
|
"no-access-state-in-setstate": _typescript_eslint_utils_ts_eslint.RuleModule<"noAccessStateInSetstate", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
994
1003
|
"no-array-index-key": _typescript_eslint_utils_ts_eslint.RuleModule<"noArrayIndexKey", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
995
1004
|
"no-children-count": _typescript_eslint_utils_ts_eslint.RuleModule<"noChildrenCount", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
@@ -1167,6 +1176,7 @@ declare const _default: {
|
|
|
1167
1176
|
readonly "@eslint-react/dom/no-unsafe-iframe-sandbox": "warn";
|
|
1168
1177
|
readonly "@eslint-react/dom/no-unsafe-target-blank": "warn";
|
|
1169
1178
|
readonly "@eslint-react/ensure-forward-ref-using-ref": "warn";
|
|
1179
|
+
readonly "@eslint-react/jsx-uses-vars": "warn";
|
|
1170
1180
|
readonly "@eslint-react/no-access-state-in-setstate": "error";
|
|
1171
1181
|
readonly "@eslint-react/no-array-index-key": "warn";
|
|
1172
1182
|
readonly "@eslint-react/no-children-count": "warn";
|
|
@@ -1233,6 +1243,7 @@ declare const _default: {
|
|
|
1233
1243
|
readonly "@eslint-react/dom/no-unsafe-iframe-sandbox": "warn";
|
|
1234
1244
|
readonly "@eslint-react/dom/no-unsafe-target-blank": "warn";
|
|
1235
1245
|
readonly "@eslint-react/ensure-forward-ref-using-ref": "warn";
|
|
1246
|
+
readonly "@eslint-react/jsx-uses-vars": "warn";
|
|
1236
1247
|
readonly "@eslint-react/no-access-state-in-setstate": "error";
|
|
1237
1248
|
readonly "@eslint-react/no-array-index-key": "warn";
|
|
1238
1249
|
readonly "@eslint-react/no-children-count": "warn";
|
|
@@ -1287,6 +1298,7 @@ declare const _default: {
|
|
|
1287
1298
|
"avoid-shorthand-boolean": _typescript_eslint_utils_ts_eslint.RuleModule<"avoidShorthandBoolean", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
1288
1299
|
"avoid-shorthand-fragment": _typescript_eslint_utils_ts_eslint.RuleModule<"avoidShorthandFragment", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
1289
1300
|
"ensure-forward-ref-using-ref": _typescript_eslint_utils_ts_eslint.RuleModule<"ensureForwardRefUsingRef", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
1301
|
+
"jsx-uses-vars": _typescript_eslint_utils_ts_eslint.RuleModule<"jsxUsesVars", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
1290
1302
|
"no-access-state-in-setstate": _typescript_eslint_utils_ts_eslint.RuleModule<"noAccessStateInSetstate", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
1291
1303
|
"no-array-index-key": _typescript_eslint_utils_ts_eslint.RuleModule<"noArrayIndexKey", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
1292
1304
|
"no-children-count": _typescript_eslint_utils_ts_eslint.RuleModule<"noChildrenCount", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
@@ -1504,6 +1516,7 @@ declare const _default: {
|
|
|
1504
1516
|
"avoid-shorthand-boolean": _typescript_eslint_utils_ts_eslint.RuleModule<"avoidShorthandBoolean", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
1505
1517
|
"avoid-shorthand-fragment": _typescript_eslint_utils_ts_eslint.RuleModule<"avoidShorthandFragment", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
1506
1518
|
"ensure-forward-ref-using-ref": _typescript_eslint_utils_ts_eslint.RuleModule<"ensureForwardRefUsingRef", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
1519
|
+
"jsx-uses-vars": _typescript_eslint_utils_ts_eslint.RuleModule<"jsxUsesVars", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
1507
1520
|
"no-access-state-in-setstate": _typescript_eslint_utils_ts_eslint.RuleModule<"noAccessStateInSetstate", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
1508
1521
|
"no-array-index-key": _typescript_eslint_utils_ts_eslint.RuleModule<"noArrayIndexKey", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
1509
1522
|
"no-children-count": _typescript_eslint_utils_ts_eslint.RuleModule<"noChildrenCount", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
@@ -1707,6 +1720,7 @@ declare const _default: {
|
|
|
1707
1720
|
"avoid-shorthand-boolean": _typescript_eslint_utils_ts_eslint.RuleModule<"avoidShorthandBoolean", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
1708
1721
|
"avoid-shorthand-fragment": _typescript_eslint_utils_ts_eslint.RuleModule<"avoidShorthandFragment", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
1709
1722
|
"ensure-forward-ref-using-ref": _typescript_eslint_utils_ts_eslint.RuleModule<"ensureForwardRefUsingRef", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
1723
|
+
"jsx-uses-vars": _typescript_eslint_utils_ts_eslint.RuleModule<"jsxUsesVars", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
1710
1724
|
"no-access-state-in-setstate": _typescript_eslint_utils_ts_eslint.RuleModule<"noAccessStateInSetstate", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
1711
1725
|
"no-array-index-key": _typescript_eslint_utils_ts_eslint.RuleModule<"noArrayIndexKey", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
1712
1726
|
"no-children-count": _typescript_eslint_utils_ts_eslint.RuleModule<"noChildrenCount", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
@@ -1904,6 +1918,7 @@ declare const _default: {
|
|
|
1904
1918
|
"avoid-shorthand-boolean": _typescript_eslint_utils_ts_eslint.RuleModule<"avoidShorthandBoolean", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
1905
1919
|
"avoid-shorthand-fragment": _typescript_eslint_utils_ts_eslint.RuleModule<"avoidShorthandFragment", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
1906
1920
|
"ensure-forward-ref-using-ref": _typescript_eslint_utils_ts_eslint.RuleModule<"ensureForwardRefUsingRef", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
1921
|
+
"jsx-uses-vars": _typescript_eslint_utils_ts_eslint.RuleModule<"jsxUsesVars", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
1907
1922
|
"no-access-state-in-setstate": _typescript_eslint_utils_ts_eslint.RuleModule<"noAccessStateInSetstate", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
1908
1923
|
"no-array-index-key": _typescript_eslint_utils_ts_eslint.RuleModule<"noArrayIndexKey", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
1909
1924
|
"no-children-count": _typescript_eslint_utils_ts_eslint.RuleModule<"noChildrenCount", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
@@ -2061,7 +2076,10 @@ declare const _default: {
|
|
|
2061
2076
|
};
|
|
2062
2077
|
};
|
|
2063
2078
|
readonly rules: {
|
|
2079
|
+
readonly "@eslint-react/avoid-shorthand-boolean": "warn";
|
|
2080
|
+
readonly "@eslint-react/avoid-shorthand-fragment": "warn";
|
|
2064
2081
|
readonly "@eslint-react/ensure-forward-ref-using-ref": "warn";
|
|
2082
|
+
readonly "@eslint-react/jsx-uses-vars": "warn";
|
|
2065
2083
|
readonly "@eslint-react/no-access-state-in-setstate": "error";
|
|
2066
2084
|
readonly "@eslint-react/no-array-index-key": "warn";
|
|
2067
2085
|
readonly "@eslint-react/no-children-count": "warn";
|
|
@@ -2102,8 +2120,6 @@ declare const _default: {
|
|
|
2102
2120
|
readonly "@eslint-react/prefer-destructuring-assignment": "warn";
|
|
2103
2121
|
readonly "@eslint-react/prefer-shorthand-boolean": "warn";
|
|
2104
2122
|
readonly "@eslint-react/prefer-shorthand-fragment": "warn";
|
|
2105
|
-
readonly "@eslint-react/avoid-shorthand-boolean": "warn";
|
|
2106
|
-
readonly "@eslint-react/avoid-shorthand-fragment": "warn";
|
|
2107
2123
|
readonly "@eslint-react/dom/no-children-in-void-dom-elements": "warn";
|
|
2108
2124
|
readonly "@eslint-react/dom/no-dangerously-set-innerhtml": "warn";
|
|
2109
2125
|
readonly "@eslint-react/dom/no-dangerously-set-innerhtml-with-children": "error";
|
|
@@ -2144,7 +2160,10 @@ declare const _default: {
|
|
|
2144
2160
|
readonly "all-legacy": {
|
|
2145
2161
|
readonly plugins: readonly ["@eslint-react"];
|
|
2146
2162
|
readonly rules: {
|
|
2163
|
+
readonly "@eslint-react/avoid-shorthand-boolean": "warn";
|
|
2164
|
+
readonly "@eslint-react/avoid-shorthand-fragment": "warn";
|
|
2147
2165
|
readonly "@eslint-react/ensure-forward-ref-using-ref": "warn";
|
|
2166
|
+
readonly "@eslint-react/jsx-uses-vars": "warn";
|
|
2148
2167
|
readonly "@eslint-react/no-access-state-in-setstate": "error";
|
|
2149
2168
|
readonly "@eslint-react/no-array-index-key": "warn";
|
|
2150
2169
|
readonly "@eslint-react/no-children-count": "warn";
|
|
@@ -2185,8 +2204,6 @@ declare const _default: {
|
|
|
2185
2204
|
readonly "@eslint-react/prefer-destructuring-assignment": "warn";
|
|
2186
2205
|
readonly "@eslint-react/prefer-shorthand-boolean": "warn";
|
|
2187
2206
|
readonly "@eslint-react/prefer-shorthand-fragment": "warn";
|
|
2188
|
-
readonly "@eslint-react/avoid-shorthand-boolean": "warn";
|
|
2189
|
-
readonly "@eslint-react/avoid-shorthand-fragment": "warn";
|
|
2190
2207
|
readonly "@eslint-react/dom/no-children-in-void-dom-elements": "warn";
|
|
2191
2208
|
readonly "@eslint-react/dom/no-dangerously-set-innerhtml": "warn";
|
|
2192
2209
|
readonly "@eslint-react/dom/no-dangerously-set-innerhtml-with-children": "error";
|
|
@@ -2235,6 +2252,7 @@ declare const _default: {
|
|
|
2235
2252
|
"avoid-shorthand-boolean": _typescript_eslint_utils_ts_eslint.RuleModule<"avoidShorthandBoolean", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
2236
2253
|
"avoid-shorthand-fragment": _typescript_eslint_utils_ts_eslint.RuleModule<"avoidShorthandFragment", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
2237
2254
|
"ensure-forward-ref-using-ref": _typescript_eslint_utils_ts_eslint.RuleModule<"ensureForwardRefUsingRef", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
2255
|
+
"jsx-uses-vars": _typescript_eslint_utils_ts_eslint.RuleModule<"jsxUsesVars", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
2238
2256
|
"no-access-state-in-setstate": _typescript_eslint_utils_ts_eslint.RuleModule<"noAccessStateInSetstate", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
2239
2257
|
"no-array-index-key": _typescript_eslint_utils_ts_eslint.RuleModule<"noArrayIndexKey", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
2240
2258
|
"no-children-count": _typescript_eslint_utils_ts_eslint.RuleModule<"noChildrenCount", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
@@ -2392,7 +2410,10 @@ declare const _default: {
|
|
|
2392
2410
|
};
|
|
2393
2411
|
};
|
|
2394
2412
|
readonly rules: {
|
|
2413
|
+
readonly "@eslint-react/avoid-shorthand-boolean"?: "off";
|
|
2414
|
+
readonly "@eslint-react/avoid-shorthand-fragment"?: "off";
|
|
2395
2415
|
readonly "@eslint-react/ensure-forward-ref-using-ref"?: "off";
|
|
2416
|
+
readonly "@eslint-react/jsx-uses-vars"?: "off";
|
|
2396
2417
|
readonly "@eslint-react/no-access-state-in-setstate"?: "off";
|
|
2397
2418
|
readonly "@eslint-react/no-array-index-key"?: "off";
|
|
2398
2419
|
readonly "@eslint-react/no-children-count"?: "off";
|
|
@@ -2433,8 +2454,6 @@ declare const _default: {
|
|
|
2433
2454
|
readonly "@eslint-react/prefer-destructuring-assignment"?: "off";
|
|
2434
2455
|
readonly "@eslint-react/prefer-shorthand-boolean"?: "off";
|
|
2435
2456
|
readonly "@eslint-react/prefer-shorthand-fragment"?: "off";
|
|
2436
|
-
readonly "@eslint-react/avoid-shorthand-boolean"?: "off";
|
|
2437
|
-
readonly "@eslint-react/avoid-shorthand-fragment"?: "off";
|
|
2438
2457
|
readonly "@eslint-react/dom/no-children-in-void-dom-elements"?: "off";
|
|
2439
2458
|
readonly "@eslint-react/dom/no-dangerously-set-innerhtml"?: "off";
|
|
2440
2459
|
readonly "@eslint-react/dom/no-dangerously-set-innerhtml-with-children"?: "off";
|
|
@@ -2475,7 +2494,10 @@ declare const _default: {
|
|
|
2475
2494
|
readonly "off-legacy": {
|
|
2476
2495
|
readonly plugins: readonly ["@eslint-react"];
|
|
2477
2496
|
readonly rules: {
|
|
2497
|
+
readonly "@eslint-react/avoid-shorthand-boolean"?: "off";
|
|
2498
|
+
readonly "@eslint-react/avoid-shorthand-fragment"?: "off";
|
|
2478
2499
|
readonly "@eslint-react/ensure-forward-ref-using-ref"?: "off";
|
|
2500
|
+
readonly "@eslint-react/jsx-uses-vars"?: "off";
|
|
2479
2501
|
readonly "@eslint-react/no-access-state-in-setstate"?: "off";
|
|
2480
2502
|
readonly "@eslint-react/no-array-index-key"?: "off";
|
|
2481
2503
|
readonly "@eslint-react/no-children-count"?: "off";
|
|
@@ -2516,8 +2538,6 @@ declare const _default: {
|
|
|
2516
2538
|
readonly "@eslint-react/prefer-destructuring-assignment"?: "off";
|
|
2517
2539
|
readonly "@eslint-react/prefer-shorthand-boolean"?: "off";
|
|
2518
2540
|
readonly "@eslint-react/prefer-shorthand-fragment"?: "off";
|
|
2519
|
-
readonly "@eslint-react/avoid-shorthand-boolean"?: "off";
|
|
2520
|
-
readonly "@eslint-react/avoid-shorthand-fragment"?: "off";
|
|
2521
2541
|
readonly "@eslint-react/dom/no-children-in-void-dom-elements"?: "off";
|
|
2522
2542
|
readonly "@eslint-react/dom/no-dangerously-set-innerhtml"?: "off";
|
|
2523
2543
|
readonly "@eslint-react/dom/no-dangerously-set-innerhtml-with-children"?: "off";
|
|
@@ -2567,6 +2587,7 @@ declare const _default: {
|
|
|
2567
2587
|
"avoid-shorthand-boolean": _typescript_eslint_utils_ts_eslint.RuleModule<"avoidShorthandBoolean", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
2568
2588
|
"avoid-shorthand-fragment": _typescript_eslint_utils_ts_eslint.RuleModule<"avoidShorthandFragment", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
2569
2589
|
"ensure-forward-ref-using-ref": _typescript_eslint_utils_ts_eslint.RuleModule<"ensureForwardRefUsingRef", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
2590
|
+
"jsx-uses-vars": _typescript_eslint_utils_ts_eslint.RuleModule<"jsxUsesVars", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
2570
2591
|
"no-access-state-in-setstate": _typescript_eslint_utils_ts_eslint.RuleModule<"noAccessStateInSetstate", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
2571
2592
|
"no-array-index-key": _typescript_eslint_utils_ts_eslint.RuleModule<"noArrayIndexKey", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
2572
2593
|
"no-children-count": _typescript_eslint_utils_ts_eslint.RuleModule<"noChildrenCount", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
@@ -2824,6 +2845,7 @@ declare const _default: {
|
|
|
2824
2845
|
readonly "avoid-shorthand-boolean": _typescript_eslint_utils_ts_eslint.RuleModule<"avoidShorthandBoolean", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
2825
2846
|
readonly "avoid-shorthand-fragment": _typescript_eslint_utils_ts_eslint.RuleModule<"avoidShorthandFragment", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
2826
2847
|
readonly "ensure-forward-ref-using-ref": _typescript_eslint_utils_ts_eslint.RuleModule<"ensureForwardRefUsingRef", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
2848
|
+
readonly "jsx-uses-vars": _typescript_eslint_utils_ts_eslint.RuleModule<"jsxUsesVars", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
2827
2849
|
readonly "no-access-state-in-setstate": _typescript_eslint_utils_ts_eslint.RuleModule<"noAccessStateInSetstate", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
2828
2850
|
readonly "no-array-index-key": _typescript_eslint_utils_ts_eslint.RuleModule<"noArrayIndexKey", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
2829
2851
|
readonly "no-children-count": _typescript_eslint_utils_ts_eslint.RuleModule<"noChildrenCount", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
package/dist/index.js
CHANGED
|
@@ -21,7 +21,7 @@ var react__default = /*#__PURE__*/_interopDefault(react);
|
|
|
21
21
|
|
|
22
22
|
// package.json
|
|
23
23
|
var name = "@eslint-react/eslint-plugin";
|
|
24
|
-
var version = "1.15.
|
|
24
|
+
var version = "1.15.3-next.0";
|
|
25
25
|
function transformKeys(obj, transform) {
|
|
26
26
|
if (tools.typeOf(obj) !== "object") return obj;
|
|
27
27
|
const res = {};
|
|
@@ -39,7 +39,10 @@ function padKeysLeft(obj, left) {
|
|
|
39
39
|
// src/index.ts
|
|
40
40
|
var allPreset = {
|
|
41
41
|
// Part: Core
|
|
42
|
+
"avoid-shorthand-boolean": "warn",
|
|
43
|
+
"avoid-shorthand-fragment": "warn",
|
|
42
44
|
"ensure-forward-ref-using-ref": "warn",
|
|
45
|
+
"jsx-uses-vars": "warn",
|
|
43
46
|
"no-access-state-in-setstate": "error",
|
|
44
47
|
"no-array-index-key": "warn",
|
|
45
48
|
"no-children-count": "warn",
|
|
@@ -82,9 +85,6 @@ var allPreset = {
|
|
|
82
85
|
// "prefer-read-only-props": "warn", // This rule requires type information
|
|
83
86
|
"prefer-shorthand-boolean": "warn",
|
|
84
87
|
"prefer-shorthand-fragment": "warn",
|
|
85
|
-
// eslint-disable-next-line perfectionist/sort-objects
|
|
86
|
-
"avoid-shorthand-boolean": "warn",
|
|
87
|
-
"avoid-shorthand-fragment": "warn",
|
|
88
88
|
// Part: DOM
|
|
89
89
|
"dom/no-children-in-void-dom-elements": "warn",
|
|
90
90
|
"dom/no-dangerously-set-innerhtml": "warn",
|
|
@@ -115,9 +115,10 @@ var allPreset = {
|
|
|
115
115
|
"naming-convention/use-state": "warn"
|
|
116
116
|
};
|
|
117
117
|
var corePreset = {
|
|
118
|
+
"ensure-forward-ref-using-ref": "warn",
|
|
118
119
|
// "avoid-shorthand-boolean": "warn",
|
|
119
120
|
// "avoid-shorthand-fragment": "warn",
|
|
120
|
-
"
|
|
121
|
+
"jsx-uses-vars": "warn",
|
|
121
122
|
"no-access-state-in-setstate": "error",
|
|
122
123
|
"no-array-index-key": "warn",
|
|
123
124
|
"no-children-count": "warn",
|
package/dist/index.mjs
CHANGED
|
@@ -10,7 +10,7 @@ import react from 'eslint-plugin-react-x';
|
|
|
10
10
|
|
|
11
11
|
// package.json
|
|
12
12
|
var name = "@eslint-react/eslint-plugin";
|
|
13
|
-
var version = "1.15.
|
|
13
|
+
var version = "1.15.3-next.0";
|
|
14
14
|
function transformKeys(obj, transform) {
|
|
15
15
|
if (typeOf(obj) !== "object") return obj;
|
|
16
16
|
const res = {};
|
|
@@ -28,7 +28,10 @@ function padKeysLeft(obj, left) {
|
|
|
28
28
|
// src/index.ts
|
|
29
29
|
var allPreset = {
|
|
30
30
|
// Part: Core
|
|
31
|
+
"avoid-shorthand-boolean": "warn",
|
|
32
|
+
"avoid-shorthand-fragment": "warn",
|
|
31
33
|
"ensure-forward-ref-using-ref": "warn",
|
|
34
|
+
"jsx-uses-vars": "warn",
|
|
32
35
|
"no-access-state-in-setstate": "error",
|
|
33
36
|
"no-array-index-key": "warn",
|
|
34
37
|
"no-children-count": "warn",
|
|
@@ -71,9 +74,6 @@ var allPreset = {
|
|
|
71
74
|
// "prefer-read-only-props": "warn", // This rule requires type information
|
|
72
75
|
"prefer-shorthand-boolean": "warn",
|
|
73
76
|
"prefer-shorthand-fragment": "warn",
|
|
74
|
-
// eslint-disable-next-line perfectionist/sort-objects
|
|
75
|
-
"avoid-shorthand-boolean": "warn",
|
|
76
|
-
"avoid-shorthand-fragment": "warn",
|
|
77
77
|
// Part: DOM
|
|
78
78
|
"dom/no-children-in-void-dom-elements": "warn",
|
|
79
79
|
"dom/no-dangerously-set-innerhtml": "warn",
|
|
@@ -104,9 +104,10 @@ var allPreset = {
|
|
|
104
104
|
"naming-convention/use-state": "warn"
|
|
105
105
|
};
|
|
106
106
|
var corePreset = {
|
|
107
|
+
"ensure-forward-ref-using-ref": "warn",
|
|
107
108
|
// "avoid-shorthand-boolean": "warn",
|
|
108
109
|
// "avoid-shorthand-fragment": "warn",
|
|
109
|
-
"
|
|
110
|
+
"jsx-uses-vars": "warn",
|
|
110
111
|
"no-access-state-in-setstate": "error",
|
|
111
112
|
"no-array-index-key": "warn",
|
|
112
113
|
"no-children-count": "warn",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@eslint-react/eslint-plugin",
|
|
3
|
-
"version": "1.15.
|
|
3
|
+
"version": "1.15.3-next.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
|
"eslint",
|
|
@@ -43,19 +43,19 @@
|
|
|
43
43
|
"./package.json"
|
|
44
44
|
],
|
|
45
45
|
"dependencies": {
|
|
46
|
-
"@typescript-eslint/scope-manager": "^8.
|
|
47
|
-
"@typescript-eslint/type-utils": "^8.
|
|
48
|
-
"@typescript-eslint/types": "^8.
|
|
49
|
-
"@typescript-eslint/utils": "^8.
|
|
50
|
-
"@eslint-react/shared": "1.15.
|
|
51
|
-
"@eslint-react/tools": "1.15.
|
|
52
|
-
"@eslint-react/types": "1.15.
|
|
53
|
-
"eslint-plugin-react-debug": "1.15.
|
|
54
|
-
"eslint-plugin-react-dom": "1.15.
|
|
55
|
-
"eslint-plugin-react-
|
|
56
|
-
"eslint-plugin-react-
|
|
57
|
-
"eslint-plugin-react-
|
|
58
|
-
"eslint-plugin-react-
|
|
46
|
+
"@typescript-eslint/scope-manager": "^8.12.1",
|
|
47
|
+
"@typescript-eslint/type-utils": "^8.12.1",
|
|
48
|
+
"@typescript-eslint/types": "^8.12.1",
|
|
49
|
+
"@typescript-eslint/utils": "^8.12.1",
|
|
50
|
+
"@eslint-react/shared": "1.15.3-next.0",
|
|
51
|
+
"@eslint-react/tools": "1.15.3-next.0",
|
|
52
|
+
"@eslint-react/types": "1.15.3-next.0",
|
|
53
|
+
"eslint-plugin-react-debug": "1.15.3-next.0",
|
|
54
|
+
"eslint-plugin-react-dom": "1.15.3-next.0",
|
|
55
|
+
"eslint-plugin-react-hooks-extra": "1.15.3-next.0",
|
|
56
|
+
"eslint-plugin-react-web-api": "1.15.3-next.0",
|
|
57
|
+
"eslint-plugin-react-x": "1.15.3-next.0",
|
|
58
|
+
"eslint-plugin-react-naming-convention": "1.15.3-next.0"
|
|
59
59
|
},
|
|
60
60
|
"devDependencies": {
|
|
61
61
|
"tsup": "^8.3.5"
|