eslint-plugin-react-naming-convention 1.28.0-next.3 → 1.28.0-next.4
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.js +2 -2
- package/dist/index.mjs +2 -2
- package/package.json +6 -6
package/dist/index.js
CHANGED
|
@@ -51,7 +51,7 @@ var rules = {};
|
|
|
51
51
|
|
|
52
52
|
// package.json
|
|
53
53
|
var name2 = "eslint-plugin-react-naming-convention";
|
|
54
|
-
var version = "1.28.0-next.
|
|
54
|
+
var version = "1.28.0-next.4";
|
|
55
55
|
var createRule = shared.createRuleForPlugin("naming-convention");
|
|
56
56
|
|
|
57
57
|
// src/rules/component-name.ts
|
|
@@ -430,7 +430,7 @@ var use_state_default = createRule({
|
|
|
430
430
|
continue;
|
|
431
431
|
}
|
|
432
432
|
for (const hookCall of hookCalls) {
|
|
433
|
-
if (!core.isUseStateCall(
|
|
433
|
+
if (!core.isUseStateCall(context, hookCall) && !alias.some(core.isReactHookCallWithNameLoose(hookCall))) {
|
|
434
434
|
continue;
|
|
435
435
|
}
|
|
436
436
|
if (hookCall.parent.type !== types.AST_NODE_TYPES.VariableDeclarator) {
|
package/dist/index.mjs
CHANGED
|
@@ -25,7 +25,7 @@ var rules = {};
|
|
|
25
25
|
|
|
26
26
|
// package.json
|
|
27
27
|
var name2 = "eslint-plugin-react-naming-convention";
|
|
28
|
-
var version = "1.28.0-next.
|
|
28
|
+
var version = "1.28.0-next.4";
|
|
29
29
|
var createRule = createRuleForPlugin("naming-convention");
|
|
30
30
|
|
|
31
31
|
// src/rules/component-name.ts
|
|
@@ -404,7 +404,7 @@ var use_state_default = createRule({
|
|
|
404
404
|
continue;
|
|
405
405
|
}
|
|
406
406
|
for (const hookCall of hookCalls) {
|
|
407
|
-
if (!isUseStateCall(
|
|
407
|
+
if (!isUseStateCall(context, hookCall) && !alias.some(isReactHookCallWithNameLoose(hookCall))) {
|
|
408
408
|
continue;
|
|
409
409
|
}
|
|
410
410
|
if (hookCall.parent.type !== AST_NODE_TYPES.VariableDeclarator) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "eslint-plugin-react-naming-convention",
|
|
3
|
-
"version": "1.28.0-next.
|
|
3
|
+
"version": "1.28.0-next.4",
|
|
4
4
|
"description": "ESLint React's ESLint plugin for naming convention related rules.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"react",
|
|
@@ -49,11 +49,11 @@
|
|
|
49
49
|
"@typescript-eslint/utils": "^8.25.0",
|
|
50
50
|
"string-ts": "^2.2.1",
|
|
51
51
|
"ts-pattern": "^5.6.2",
|
|
52
|
-
"@eslint-react/ast": "1.28.0-next.
|
|
53
|
-
"@eslint-react/core": "1.28.0-next.
|
|
54
|
-
"@eslint-react/eff": "1.28.0-next.
|
|
55
|
-
"@eslint-react/jsx": "1.28.0-next.
|
|
56
|
-
"@eslint-react/shared": "1.28.0-next.
|
|
52
|
+
"@eslint-react/ast": "1.28.0-next.4",
|
|
53
|
+
"@eslint-react/core": "1.28.0-next.4",
|
|
54
|
+
"@eslint-react/eff": "1.28.0-next.4",
|
|
55
|
+
"@eslint-react/jsx": "1.28.0-next.4",
|
|
56
|
+
"@eslint-react/shared": "1.28.0-next.4"
|
|
57
57
|
},
|
|
58
58
|
"devDependencies": {
|
|
59
59
|
"@types/react": "^19.0.10",
|