@eslint-react/eslint-plugin 1.28.1-beta.4 → 1.28.1-beta.7
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 +19 -9
- package/dist/index.d.ts +19 -9
- package/dist/index.js +2 -1
- package/dist/index.mjs +2 -1
- package/package.json +9 -9
package/dist/index.d.mts
CHANGED
|
@@ -74,6 +74,7 @@ declare const rules$b: {
|
|
|
74
74
|
readonly "@eslint-react/hooks-extra/no-useless-custom-hooks": "warn";
|
|
75
75
|
readonly "@eslint-react/hooks-extra/prefer-use-state-lazy-initialization": "warn";
|
|
76
76
|
readonly "@eslint-react/naming-convention/component-name": "warn";
|
|
77
|
+
readonly "@eslint-react/naming-convention/context-name": "warn";
|
|
77
78
|
readonly "@eslint-react/naming-convention/filename": "warn";
|
|
78
79
|
readonly "@eslint-react/naming-convention/filename-extension": "warn";
|
|
79
80
|
readonly "@eslint-react/naming-convention/use-state": "warn";
|
|
@@ -182,6 +183,7 @@ declare const plugins$6: {
|
|
|
182
183
|
excepts?: readonly string[];
|
|
183
184
|
rule?: "CONSTANT_CASE" | "PascalCase";
|
|
184
185
|
} | undefined], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
186
|
+
readonly "context-name": _typescript_eslint_utils_ts_eslint.RuleModule<"contextName", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
185
187
|
readonly filename: _typescript_eslint_utils_ts_eslint.RuleModule<"filenameCaseMismatch" | "filenameEmpty", readonly [("PascalCase" | "camelCase" | "kebab-case" | "snake_case") | {
|
|
186
188
|
excepts?: readonly string[];
|
|
187
189
|
extensions?: readonly string[];
|
|
@@ -192,7 +194,7 @@ declare const plugins$6: {
|
|
|
192
194
|
extensions?: readonly string[];
|
|
193
195
|
ignoreFilesWithoutCode?: boolean;
|
|
194
196
|
} | undefined], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
195
|
-
readonly "use-state": _typescript_eslint_utils_ts_eslint.RuleModule<"
|
|
197
|
+
readonly "use-state": _typescript_eslint_utils_ts_eslint.RuleModule<"badValueOrSetterName", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
196
198
|
};
|
|
197
199
|
};
|
|
198
200
|
};
|
|
@@ -216,6 +218,7 @@ declare const plugins$6: {
|
|
|
216
218
|
excepts?: readonly string[];
|
|
217
219
|
rule?: "CONSTANT_CASE" | "PascalCase";
|
|
218
220
|
} | undefined], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
221
|
+
readonly "context-name": _typescript_eslint_utils_ts_eslint.RuleModule<"contextName", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
219
222
|
readonly filename: _typescript_eslint_utils_ts_eslint.RuleModule<"filenameCaseMismatch" | "filenameEmpty", readonly [("PascalCase" | "camelCase" | "kebab-case" | "snake_case") | {
|
|
220
223
|
excepts?: readonly string[];
|
|
221
224
|
extensions?: readonly string[];
|
|
@@ -226,7 +229,7 @@ declare const plugins$6: {
|
|
|
226
229
|
extensions?: readonly string[];
|
|
227
230
|
ignoreFilesWithoutCode?: boolean;
|
|
228
231
|
} | undefined], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
229
|
-
readonly "use-state": _typescript_eslint_utils_ts_eslint.RuleModule<"
|
|
232
|
+
readonly "use-state": _typescript_eslint_utils_ts_eslint.RuleModule<"badValueOrSetterName", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
230
233
|
};
|
|
231
234
|
};
|
|
232
235
|
"@eslint-react/web-api": {
|
|
@@ -1364,6 +1367,7 @@ declare const plugins$2: {
|
|
|
1364
1367
|
excepts?: readonly string[];
|
|
1365
1368
|
rule?: "CONSTANT_CASE" | "PascalCase";
|
|
1366
1369
|
} | undefined], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
1370
|
+
readonly "context-name": _typescript_eslint_utils_ts_eslint.RuleModule<"contextName", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
1367
1371
|
readonly filename: _typescript_eslint_utils_ts_eslint.RuleModule<"filenameCaseMismatch" | "filenameEmpty", readonly [("PascalCase" | "camelCase" | "kebab-case" | "snake_case") | {
|
|
1368
1372
|
excepts?: readonly string[];
|
|
1369
1373
|
extensions?: readonly string[];
|
|
@@ -1374,7 +1378,7 @@ declare const plugins$2: {
|
|
|
1374
1378
|
extensions?: readonly string[];
|
|
1375
1379
|
ignoreFilesWithoutCode?: boolean;
|
|
1376
1380
|
} | undefined], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
1377
|
-
readonly "use-state": _typescript_eslint_utils_ts_eslint.RuleModule<"
|
|
1381
|
+
readonly "use-state": _typescript_eslint_utils_ts_eslint.RuleModule<"badValueOrSetterName", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
1378
1382
|
};
|
|
1379
1383
|
};
|
|
1380
1384
|
};
|
|
@@ -1398,6 +1402,7 @@ declare const plugins$2: {
|
|
|
1398
1402
|
excepts?: readonly string[];
|
|
1399
1403
|
rule?: "CONSTANT_CASE" | "PascalCase";
|
|
1400
1404
|
} | undefined], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
1405
|
+
readonly "context-name": _typescript_eslint_utils_ts_eslint.RuleModule<"contextName", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
1401
1406
|
readonly filename: _typescript_eslint_utils_ts_eslint.RuleModule<"filenameCaseMismatch" | "filenameEmpty", readonly [("PascalCase" | "camelCase" | "kebab-case" | "snake_case") | {
|
|
1402
1407
|
excepts?: readonly string[];
|
|
1403
1408
|
extensions?: readonly string[];
|
|
@@ -1408,7 +1413,7 @@ declare const plugins$2: {
|
|
|
1408
1413
|
extensions?: readonly string[];
|
|
1409
1414
|
ignoreFilesWithoutCode?: boolean;
|
|
1410
1415
|
} | undefined], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
1411
|
-
readonly "use-state": _typescript_eslint_utils_ts_eslint.RuleModule<"
|
|
1416
|
+
readonly "use-state": _typescript_eslint_utils_ts_eslint.RuleModule<"badValueOrSetterName", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
1412
1417
|
};
|
|
1413
1418
|
};
|
|
1414
1419
|
"@eslint-react/web-api": {
|
|
@@ -1992,6 +1997,7 @@ declare const plugins$1: {
|
|
|
1992
1997
|
excepts?: readonly string[];
|
|
1993
1998
|
rule?: "CONSTANT_CASE" | "PascalCase";
|
|
1994
1999
|
} | undefined], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
2000
|
+
readonly "context-name": _typescript_eslint_utils_ts_eslint.RuleModule<"contextName", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
1995
2001
|
readonly filename: _typescript_eslint_utils_ts_eslint.RuleModule<"filenameCaseMismatch" | "filenameEmpty", readonly [("PascalCase" | "camelCase" | "kebab-case" | "snake_case") | {
|
|
1996
2002
|
excepts?: readonly string[];
|
|
1997
2003
|
extensions?: readonly string[];
|
|
@@ -2002,7 +2008,7 @@ declare const plugins$1: {
|
|
|
2002
2008
|
extensions?: readonly string[];
|
|
2003
2009
|
ignoreFilesWithoutCode?: boolean;
|
|
2004
2010
|
} | undefined], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
2005
|
-
readonly "use-state": _typescript_eslint_utils_ts_eslint.RuleModule<"
|
|
2011
|
+
readonly "use-state": _typescript_eslint_utils_ts_eslint.RuleModule<"badValueOrSetterName", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
2006
2012
|
};
|
|
2007
2013
|
};
|
|
2008
2014
|
};
|
|
@@ -2026,6 +2032,7 @@ declare const plugins$1: {
|
|
|
2026
2032
|
excepts?: readonly string[];
|
|
2027
2033
|
rule?: "CONSTANT_CASE" | "PascalCase";
|
|
2028
2034
|
} | undefined], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
2035
|
+
readonly "context-name": _typescript_eslint_utils_ts_eslint.RuleModule<"contextName", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
2029
2036
|
readonly filename: _typescript_eslint_utils_ts_eslint.RuleModule<"filenameCaseMismatch" | "filenameEmpty", readonly [("PascalCase" | "camelCase" | "kebab-case" | "snake_case") | {
|
|
2030
2037
|
excepts?: readonly string[];
|
|
2031
2038
|
extensions?: readonly string[];
|
|
@@ -2036,7 +2043,7 @@ declare const plugins$1: {
|
|
|
2036
2043
|
extensions?: readonly string[];
|
|
2037
2044
|
ignoreFilesWithoutCode?: boolean;
|
|
2038
2045
|
} | undefined], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
2039
|
-
readonly "use-state": _typescript_eslint_utils_ts_eslint.RuleModule<"
|
|
2046
|
+
readonly "use-state": _typescript_eslint_utils_ts_eslint.RuleModule<"badValueOrSetterName", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
2040
2047
|
};
|
|
2041
2048
|
};
|
|
2042
2049
|
"@eslint-react/web-api": {
|
|
@@ -2619,6 +2626,7 @@ declare const plugins: {
|
|
|
2619
2626
|
excepts?: readonly string[];
|
|
2620
2627
|
rule?: "CONSTANT_CASE" | "PascalCase";
|
|
2621
2628
|
} | undefined], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
2629
|
+
readonly "context-name": _typescript_eslint_utils_ts_eslint.RuleModule<"contextName", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
2622
2630
|
readonly filename: _typescript_eslint_utils_ts_eslint.RuleModule<"filenameCaseMismatch" | "filenameEmpty", readonly [("PascalCase" | "camelCase" | "kebab-case" | "snake_case") | {
|
|
2623
2631
|
excepts?: readonly string[];
|
|
2624
2632
|
extensions?: readonly string[];
|
|
@@ -2629,7 +2637,7 @@ declare const plugins: {
|
|
|
2629
2637
|
extensions?: readonly string[];
|
|
2630
2638
|
ignoreFilesWithoutCode?: boolean;
|
|
2631
2639
|
} | undefined], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
2632
|
-
readonly "use-state": _typescript_eslint_utils_ts_eslint.RuleModule<"
|
|
2640
|
+
readonly "use-state": _typescript_eslint_utils_ts_eslint.RuleModule<"badValueOrSetterName", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
2633
2641
|
};
|
|
2634
2642
|
};
|
|
2635
2643
|
};
|
|
@@ -2653,6 +2661,7 @@ declare const plugins: {
|
|
|
2653
2661
|
excepts?: readonly string[];
|
|
2654
2662
|
rule?: "CONSTANT_CASE" | "PascalCase";
|
|
2655
2663
|
} | undefined], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
2664
|
+
readonly "context-name": _typescript_eslint_utils_ts_eslint.RuleModule<"contextName", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
2656
2665
|
readonly filename: _typescript_eslint_utils_ts_eslint.RuleModule<"filenameCaseMismatch" | "filenameEmpty", readonly [("PascalCase" | "camelCase" | "kebab-case" | "snake_case") | {
|
|
2657
2666
|
excepts?: readonly string[];
|
|
2658
2667
|
extensions?: readonly string[];
|
|
@@ -2663,7 +2672,7 @@ declare const plugins: {
|
|
|
2663
2672
|
extensions?: readonly string[];
|
|
2664
2673
|
ignoreFilesWithoutCode?: boolean;
|
|
2665
2674
|
} | undefined], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
2666
|
-
readonly "use-state": _typescript_eslint_utils_ts_eslint.RuleModule<"
|
|
2675
|
+
readonly "use-state": _typescript_eslint_utils_ts_eslint.RuleModule<"badValueOrSetterName", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
2667
2676
|
};
|
|
2668
2677
|
};
|
|
2669
2678
|
"@eslint-react/web-api": {
|
|
@@ -3173,6 +3182,7 @@ declare const _default: {
|
|
|
3173
3182
|
excepts?: readonly string[];
|
|
3174
3183
|
rule?: "CONSTANT_CASE" | "PascalCase";
|
|
3175
3184
|
} | undefined], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
3185
|
+
readonly "naming-convention/context-name": _typescript_eslint_utils_ts_eslint.RuleModule<"contextName", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
3176
3186
|
readonly "naming-convention/filename": _typescript_eslint_utils_ts_eslint.RuleModule<"filenameCaseMismatch" | "filenameEmpty", readonly ["PascalCase" | "camelCase" | "kebab-case" | "snake_case" | {
|
|
3177
3187
|
excepts?: readonly string[];
|
|
3178
3188
|
extensions?: readonly string[];
|
|
@@ -3183,7 +3193,7 @@ declare const _default: {
|
|
|
3183
3193
|
extensions?: readonly string[];
|
|
3184
3194
|
ignoreFilesWithoutCode?: boolean;
|
|
3185
3195
|
} | undefined], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
3186
|
-
readonly "naming-convention/use-state": _typescript_eslint_utils_ts_eslint.RuleModule<"
|
|
3196
|
+
readonly "naming-convention/use-state": _typescript_eslint_utils_ts_eslint.RuleModule<"badValueOrSetterName", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
3187
3197
|
readonly "hooks-extra/no-direct-set-state-in-use-effect": _typescript_eslint_utils_ts_eslint.RuleModule<"noDirectSetStateInUseEffect", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
3188
3198
|
readonly "hooks-extra/no-direct-set-state-in-use-layout-effect": _typescript_eslint_utils_ts_eslint.RuleModule<"noDirectSetStateInUseLayoutEffect", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
3189
3199
|
readonly "hooks-extra/no-unnecessary-use-callback": _typescript_eslint_utils_ts_eslint.RuleModule<"noUnnecessaryUseCallback", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
package/dist/index.d.ts
CHANGED
|
@@ -74,6 +74,7 @@ declare const rules$b: {
|
|
|
74
74
|
readonly "@eslint-react/hooks-extra/no-useless-custom-hooks": "warn";
|
|
75
75
|
readonly "@eslint-react/hooks-extra/prefer-use-state-lazy-initialization": "warn";
|
|
76
76
|
readonly "@eslint-react/naming-convention/component-name": "warn";
|
|
77
|
+
readonly "@eslint-react/naming-convention/context-name": "warn";
|
|
77
78
|
readonly "@eslint-react/naming-convention/filename": "warn";
|
|
78
79
|
readonly "@eslint-react/naming-convention/filename-extension": "warn";
|
|
79
80
|
readonly "@eslint-react/naming-convention/use-state": "warn";
|
|
@@ -182,6 +183,7 @@ declare const plugins$6: {
|
|
|
182
183
|
excepts?: readonly string[];
|
|
183
184
|
rule?: "CONSTANT_CASE" | "PascalCase";
|
|
184
185
|
} | undefined], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
186
|
+
readonly "context-name": _typescript_eslint_utils_ts_eslint.RuleModule<"contextName", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
185
187
|
readonly filename: _typescript_eslint_utils_ts_eslint.RuleModule<"filenameCaseMismatch" | "filenameEmpty", readonly [("PascalCase" | "camelCase" | "kebab-case" | "snake_case") | {
|
|
186
188
|
excepts?: readonly string[];
|
|
187
189
|
extensions?: readonly string[];
|
|
@@ -192,7 +194,7 @@ declare const plugins$6: {
|
|
|
192
194
|
extensions?: readonly string[];
|
|
193
195
|
ignoreFilesWithoutCode?: boolean;
|
|
194
196
|
} | undefined], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
195
|
-
readonly "use-state": _typescript_eslint_utils_ts_eslint.RuleModule<"
|
|
197
|
+
readonly "use-state": _typescript_eslint_utils_ts_eslint.RuleModule<"badValueOrSetterName", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
196
198
|
};
|
|
197
199
|
};
|
|
198
200
|
};
|
|
@@ -216,6 +218,7 @@ declare const plugins$6: {
|
|
|
216
218
|
excepts?: readonly string[];
|
|
217
219
|
rule?: "CONSTANT_CASE" | "PascalCase";
|
|
218
220
|
} | undefined], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
221
|
+
readonly "context-name": _typescript_eslint_utils_ts_eslint.RuleModule<"contextName", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
219
222
|
readonly filename: _typescript_eslint_utils_ts_eslint.RuleModule<"filenameCaseMismatch" | "filenameEmpty", readonly [("PascalCase" | "camelCase" | "kebab-case" | "snake_case") | {
|
|
220
223
|
excepts?: readonly string[];
|
|
221
224
|
extensions?: readonly string[];
|
|
@@ -226,7 +229,7 @@ declare const plugins$6: {
|
|
|
226
229
|
extensions?: readonly string[];
|
|
227
230
|
ignoreFilesWithoutCode?: boolean;
|
|
228
231
|
} | undefined], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
229
|
-
readonly "use-state": _typescript_eslint_utils_ts_eslint.RuleModule<"
|
|
232
|
+
readonly "use-state": _typescript_eslint_utils_ts_eslint.RuleModule<"badValueOrSetterName", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
230
233
|
};
|
|
231
234
|
};
|
|
232
235
|
"@eslint-react/web-api": {
|
|
@@ -1364,6 +1367,7 @@ declare const plugins$2: {
|
|
|
1364
1367
|
excepts?: readonly string[];
|
|
1365
1368
|
rule?: "CONSTANT_CASE" | "PascalCase";
|
|
1366
1369
|
} | undefined], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
1370
|
+
readonly "context-name": _typescript_eslint_utils_ts_eslint.RuleModule<"contextName", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
1367
1371
|
readonly filename: _typescript_eslint_utils_ts_eslint.RuleModule<"filenameCaseMismatch" | "filenameEmpty", readonly [("PascalCase" | "camelCase" | "kebab-case" | "snake_case") | {
|
|
1368
1372
|
excepts?: readonly string[];
|
|
1369
1373
|
extensions?: readonly string[];
|
|
@@ -1374,7 +1378,7 @@ declare const plugins$2: {
|
|
|
1374
1378
|
extensions?: readonly string[];
|
|
1375
1379
|
ignoreFilesWithoutCode?: boolean;
|
|
1376
1380
|
} | undefined], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
1377
|
-
readonly "use-state": _typescript_eslint_utils_ts_eslint.RuleModule<"
|
|
1381
|
+
readonly "use-state": _typescript_eslint_utils_ts_eslint.RuleModule<"badValueOrSetterName", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
1378
1382
|
};
|
|
1379
1383
|
};
|
|
1380
1384
|
};
|
|
@@ -1398,6 +1402,7 @@ declare const plugins$2: {
|
|
|
1398
1402
|
excepts?: readonly string[];
|
|
1399
1403
|
rule?: "CONSTANT_CASE" | "PascalCase";
|
|
1400
1404
|
} | undefined], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
1405
|
+
readonly "context-name": _typescript_eslint_utils_ts_eslint.RuleModule<"contextName", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
1401
1406
|
readonly filename: _typescript_eslint_utils_ts_eslint.RuleModule<"filenameCaseMismatch" | "filenameEmpty", readonly [("PascalCase" | "camelCase" | "kebab-case" | "snake_case") | {
|
|
1402
1407
|
excepts?: readonly string[];
|
|
1403
1408
|
extensions?: readonly string[];
|
|
@@ -1408,7 +1413,7 @@ declare const plugins$2: {
|
|
|
1408
1413
|
extensions?: readonly string[];
|
|
1409
1414
|
ignoreFilesWithoutCode?: boolean;
|
|
1410
1415
|
} | undefined], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
1411
|
-
readonly "use-state": _typescript_eslint_utils_ts_eslint.RuleModule<"
|
|
1416
|
+
readonly "use-state": _typescript_eslint_utils_ts_eslint.RuleModule<"badValueOrSetterName", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
1412
1417
|
};
|
|
1413
1418
|
};
|
|
1414
1419
|
"@eslint-react/web-api": {
|
|
@@ -1992,6 +1997,7 @@ declare const plugins$1: {
|
|
|
1992
1997
|
excepts?: readonly string[];
|
|
1993
1998
|
rule?: "CONSTANT_CASE" | "PascalCase";
|
|
1994
1999
|
} | undefined], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
2000
|
+
readonly "context-name": _typescript_eslint_utils_ts_eslint.RuleModule<"contextName", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
1995
2001
|
readonly filename: _typescript_eslint_utils_ts_eslint.RuleModule<"filenameCaseMismatch" | "filenameEmpty", readonly [("PascalCase" | "camelCase" | "kebab-case" | "snake_case") | {
|
|
1996
2002
|
excepts?: readonly string[];
|
|
1997
2003
|
extensions?: readonly string[];
|
|
@@ -2002,7 +2008,7 @@ declare const plugins$1: {
|
|
|
2002
2008
|
extensions?: readonly string[];
|
|
2003
2009
|
ignoreFilesWithoutCode?: boolean;
|
|
2004
2010
|
} | undefined], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
2005
|
-
readonly "use-state": _typescript_eslint_utils_ts_eslint.RuleModule<"
|
|
2011
|
+
readonly "use-state": _typescript_eslint_utils_ts_eslint.RuleModule<"badValueOrSetterName", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
2006
2012
|
};
|
|
2007
2013
|
};
|
|
2008
2014
|
};
|
|
@@ -2026,6 +2032,7 @@ declare const plugins$1: {
|
|
|
2026
2032
|
excepts?: readonly string[];
|
|
2027
2033
|
rule?: "CONSTANT_CASE" | "PascalCase";
|
|
2028
2034
|
} | undefined], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
2035
|
+
readonly "context-name": _typescript_eslint_utils_ts_eslint.RuleModule<"contextName", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
2029
2036
|
readonly filename: _typescript_eslint_utils_ts_eslint.RuleModule<"filenameCaseMismatch" | "filenameEmpty", readonly [("PascalCase" | "camelCase" | "kebab-case" | "snake_case") | {
|
|
2030
2037
|
excepts?: readonly string[];
|
|
2031
2038
|
extensions?: readonly string[];
|
|
@@ -2036,7 +2043,7 @@ declare const plugins$1: {
|
|
|
2036
2043
|
extensions?: readonly string[];
|
|
2037
2044
|
ignoreFilesWithoutCode?: boolean;
|
|
2038
2045
|
} | undefined], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
2039
|
-
readonly "use-state": _typescript_eslint_utils_ts_eslint.RuleModule<"
|
|
2046
|
+
readonly "use-state": _typescript_eslint_utils_ts_eslint.RuleModule<"badValueOrSetterName", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
2040
2047
|
};
|
|
2041
2048
|
};
|
|
2042
2049
|
"@eslint-react/web-api": {
|
|
@@ -2619,6 +2626,7 @@ declare const plugins: {
|
|
|
2619
2626
|
excepts?: readonly string[];
|
|
2620
2627
|
rule?: "CONSTANT_CASE" | "PascalCase";
|
|
2621
2628
|
} | undefined], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
2629
|
+
readonly "context-name": _typescript_eslint_utils_ts_eslint.RuleModule<"contextName", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
2622
2630
|
readonly filename: _typescript_eslint_utils_ts_eslint.RuleModule<"filenameCaseMismatch" | "filenameEmpty", readonly [("PascalCase" | "camelCase" | "kebab-case" | "snake_case") | {
|
|
2623
2631
|
excepts?: readonly string[];
|
|
2624
2632
|
extensions?: readonly string[];
|
|
@@ -2629,7 +2637,7 @@ declare const plugins: {
|
|
|
2629
2637
|
extensions?: readonly string[];
|
|
2630
2638
|
ignoreFilesWithoutCode?: boolean;
|
|
2631
2639
|
} | undefined], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
2632
|
-
readonly "use-state": _typescript_eslint_utils_ts_eslint.RuleModule<"
|
|
2640
|
+
readonly "use-state": _typescript_eslint_utils_ts_eslint.RuleModule<"badValueOrSetterName", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
2633
2641
|
};
|
|
2634
2642
|
};
|
|
2635
2643
|
};
|
|
@@ -2653,6 +2661,7 @@ declare const plugins: {
|
|
|
2653
2661
|
excepts?: readonly string[];
|
|
2654
2662
|
rule?: "CONSTANT_CASE" | "PascalCase";
|
|
2655
2663
|
} | undefined], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
2664
|
+
readonly "context-name": _typescript_eslint_utils_ts_eslint.RuleModule<"contextName", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
2656
2665
|
readonly filename: _typescript_eslint_utils_ts_eslint.RuleModule<"filenameCaseMismatch" | "filenameEmpty", readonly [("PascalCase" | "camelCase" | "kebab-case" | "snake_case") | {
|
|
2657
2666
|
excepts?: readonly string[];
|
|
2658
2667
|
extensions?: readonly string[];
|
|
@@ -2663,7 +2672,7 @@ declare const plugins: {
|
|
|
2663
2672
|
extensions?: readonly string[];
|
|
2664
2673
|
ignoreFilesWithoutCode?: boolean;
|
|
2665
2674
|
} | undefined], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
2666
|
-
readonly "use-state": _typescript_eslint_utils_ts_eslint.RuleModule<"
|
|
2675
|
+
readonly "use-state": _typescript_eslint_utils_ts_eslint.RuleModule<"badValueOrSetterName", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
2667
2676
|
};
|
|
2668
2677
|
};
|
|
2669
2678
|
"@eslint-react/web-api": {
|
|
@@ -3173,6 +3182,7 @@ declare const _default: {
|
|
|
3173
3182
|
excepts?: readonly string[];
|
|
3174
3183
|
rule?: "CONSTANT_CASE" | "PascalCase";
|
|
3175
3184
|
} | undefined], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
3185
|
+
readonly "naming-convention/context-name": _typescript_eslint_utils_ts_eslint.RuleModule<"contextName", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
3176
3186
|
readonly "naming-convention/filename": _typescript_eslint_utils_ts_eslint.RuleModule<"filenameCaseMismatch" | "filenameEmpty", readonly ["PascalCase" | "camelCase" | "kebab-case" | "snake_case" | {
|
|
3177
3187
|
excepts?: readonly string[];
|
|
3178
3188
|
extensions?: readonly string[];
|
|
@@ -3183,7 +3193,7 @@ declare const _default: {
|
|
|
3183
3193
|
extensions?: readonly string[];
|
|
3184
3194
|
ignoreFilesWithoutCode?: boolean;
|
|
3185
3195
|
} | undefined], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
3186
|
-
readonly "naming-convention/use-state": _typescript_eslint_utils_ts_eslint.RuleModule<"
|
|
3196
|
+
readonly "naming-convention/use-state": _typescript_eslint_utils_ts_eslint.RuleModule<"badValueOrSetterName", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
3187
3197
|
readonly "hooks-extra/no-direct-set-state-in-use-effect": _typescript_eslint_utils_ts_eslint.RuleModule<"noDirectSetStateInUseEffect", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
3188
3198
|
readonly "hooks-extra/no-direct-set-state-in-use-layout-effect": _typescript_eslint_utils_ts_eslint.RuleModule<"noDirectSetStateInUseLayoutEffect", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
3189
3199
|
readonly "hooks-extra/no-unnecessary-use-callback": _typescript_eslint_utils_ts_eslint.RuleModule<"noUnnecessaryUseCallback", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
package/dist/index.js
CHANGED
|
@@ -25,7 +25,7 @@ var __export = (target, all) => {
|
|
|
25
25
|
|
|
26
26
|
// package.json
|
|
27
27
|
var name = "@eslint-react/eslint-plugin";
|
|
28
|
-
var version = "1.28.1-beta.
|
|
28
|
+
var version = "1.28.1-beta.7";
|
|
29
29
|
|
|
30
30
|
// src/configs/all.ts
|
|
31
31
|
var all_exports = {};
|
|
@@ -198,6 +198,7 @@ var rules3 = {
|
|
|
198
198
|
"@eslint-react/hooks-extra/prefer-use-state-lazy-initialization": "warn",
|
|
199
199
|
// Part: Naming Convention
|
|
200
200
|
"@eslint-react/naming-convention/component-name": "warn",
|
|
201
|
+
"@eslint-react/naming-convention/context-name": "warn",
|
|
201
202
|
"@eslint-react/naming-convention/filename": "warn",
|
|
202
203
|
"@eslint-react/naming-convention/filename-extension": "warn",
|
|
203
204
|
"@eslint-react/naming-convention/use-state": "warn"
|
package/dist/index.mjs
CHANGED
|
@@ -14,7 +14,7 @@ var __export = (target, all) => {
|
|
|
14
14
|
|
|
15
15
|
// package.json
|
|
16
16
|
var name = "@eslint-react/eslint-plugin";
|
|
17
|
-
var version = "1.28.1-beta.
|
|
17
|
+
var version = "1.28.1-beta.7";
|
|
18
18
|
|
|
19
19
|
// src/configs/all.ts
|
|
20
20
|
var all_exports = {};
|
|
@@ -187,6 +187,7 @@ var rules3 = {
|
|
|
187
187
|
"@eslint-react/hooks-extra/prefer-use-state-lazy-initialization": "warn",
|
|
188
188
|
// Part: Naming Convention
|
|
189
189
|
"@eslint-react/naming-convention/component-name": "warn",
|
|
190
|
+
"@eslint-react/naming-convention/context-name": "warn",
|
|
190
191
|
"@eslint-react/naming-convention/filename": "warn",
|
|
191
192
|
"@eslint-react/naming-convention/filename-extension": "warn",
|
|
192
193
|
"@eslint-react/naming-convention/use-state": "warn"
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@eslint-react/eslint-plugin",
|
|
3
|
-
"version": "1.28.1-beta.
|
|
3
|
+
"version": "1.28.1-beta.7",
|
|
4
4
|
"description": "More than 80 high-quality linting rules for writing better React code.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"react",
|
|
@@ -50,14 +50,14 @@
|
|
|
50
50
|
"@typescript-eslint/type-utils": "^8.25.0",
|
|
51
51
|
"@typescript-eslint/types": "^8.25.0",
|
|
52
52
|
"@typescript-eslint/utils": "^8.25.0",
|
|
53
|
-
"@eslint-react/eff": "1.28.1-beta.
|
|
54
|
-
"@eslint-react/shared": "1.28.1-beta.
|
|
55
|
-
"eslint-plugin-react-
|
|
56
|
-
"eslint-plugin-react-
|
|
57
|
-
"eslint-plugin-react-
|
|
58
|
-
"eslint-plugin-react-
|
|
59
|
-
"eslint-plugin-react-web-api": "1.28.1-beta.
|
|
60
|
-
"eslint-plugin-react-x": "1.28.1-beta.
|
|
53
|
+
"@eslint-react/eff": "1.28.1-beta.7",
|
|
54
|
+
"@eslint-react/shared": "1.28.1-beta.7",
|
|
55
|
+
"eslint-plugin-react-dom": "1.28.1-beta.7",
|
|
56
|
+
"eslint-plugin-react-debug": "1.28.1-beta.7",
|
|
57
|
+
"eslint-plugin-react-hooks-extra": "1.28.1-beta.7",
|
|
58
|
+
"eslint-plugin-react-naming-convention": "1.28.1-beta.7",
|
|
59
|
+
"eslint-plugin-react-web-api": "1.28.1-beta.7",
|
|
60
|
+
"eslint-plugin-react-x": "1.28.1-beta.7"
|
|
61
61
|
},
|
|
62
62
|
"devDependencies": {
|
|
63
63
|
"tsup": "^8.4.0",
|