eslint-plugin-react-naming-convention 1.22.2-next.9 → 1.22.2
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 +3 -7
- package/dist/index.mjs +3 -7
- package/package.json +7 -7
package/dist/index.js
CHANGED
|
@@ -36,7 +36,7 @@ var path__default = /*#__PURE__*/_interopDefault(path);
|
|
|
36
36
|
|
|
37
37
|
// package.json
|
|
38
38
|
var name = "eslint-plugin-react-naming-convention";
|
|
39
|
-
var version = "1.22.2
|
|
39
|
+
var version = "1.22.2";
|
|
40
40
|
var createRule = shared.createRuleForPlugin("naming-convention");
|
|
41
41
|
|
|
42
42
|
// src/rules/component-name.ts
|
|
@@ -375,12 +375,8 @@ var use_state_default = createRule({
|
|
|
375
375
|
for (const { hookCalls } of components.values()) {
|
|
376
376
|
if (hookCalls.length === 0) continue;
|
|
377
377
|
for (const hookCall of hookCalls) {
|
|
378
|
-
if (!core.isUseStateCall(hookCall, context) && !alias.some(core.isReactHookCallWithNameLoose(hookCall)))
|
|
379
|
-
|
|
380
|
-
}
|
|
381
|
-
if (hookCall.parent.type !== types.AST_NODE_TYPES.VariableDeclarator) {
|
|
382
|
-
continue;
|
|
383
|
-
}
|
|
378
|
+
if (!core.isUseStateCall(hookCall, context) && !alias.some(core.isReactHookCallWithNameLoose(hookCall))) continue;
|
|
379
|
+
if (hookCall.parent.type !== types.AST_NODE_TYPES.VariableDeclarator) continue;
|
|
384
380
|
const { id } = hookCall.parent;
|
|
385
381
|
const descriptor = eff.O.some({ messageId: "useState", node: id });
|
|
386
382
|
eff.F.pipe(
|
package/dist/index.mjs
CHANGED
|
@@ -10,7 +10,7 @@ import { AST_NODE_TYPES } from '@typescript-eslint/types';
|
|
|
10
10
|
|
|
11
11
|
// package.json
|
|
12
12
|
var name = "eslint-plugin-react-naming-convention";
|
|
13
|
-
var version = "1.22.2
|
|
13
|
+
var version = "1.22.2";
|
|
14
14
|
var createRule = createRuleForPlugin("naming-convention");
|
|
15
15
|
|
|
16
16
|
// src/rules/component-name.ts
|
|
@@ -349,12 +349,8 @@ var use_state_default = createRule({
|
|
|
349
349
|
for (const { hookCalls } of components.values()) {
|
|
350
350
|
if (hookCalls.length === 0) continue;
|
|
351
351
|
for (const hookCall of hookCalls) {
|
|
352
|
-
if (!isUseStateCall(hookCall, context) && !alias.some(isReactHookCallWithNameLoose(hookCall)))
|
|
353
|
-
|
|
354
|
-
}
|
|
355
|
-
if (hookCall.parent.type !== AST_NODE_TYPES.VariableDeclarator) {
|
|
356
|
-
continue;
|
|
357
|
-
}
|
|
352
|
+
if (!isUseStateCall(hookCall, context) && !alias.some(isReactHookCallWithNameLoose(hookCall))) continue;
|
|
353
|
+
if (hookCall.parent.type !== AST_NODE_TYPES.VariableDeclarator) continue;
|
|
358
354
|
const { id } = hookCall.parent;
|
|
359
355
|
const descriptor = O.some({ messageId: "useState", node: id });
|
|
360
356
|
F.pipe(
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "eslint-plugin-react-naming-convention",
|
|
3
|
-
"version": "1.22.2
|
|
3
|
+
"version": "1.22.2",
|
|
4
4
|
"description": "ESLint React's ESLint plugin for naming convention related rules.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"react",
|
|
@@ -47,12 +47,12 @@
|
|
|
47
47
|
"@typescript-eslint/utils": "^8.18.2",
|
|
48
48
|
"string-ts": "^2.2.0",
|
|
49
49
|
"ts-pattern": "^5.6.0",
|
|
50
|
-
"@eslint-react/ast": "1.22.2
|
|
51
|
-
"@eslint-react/core": "1.22.2
|
|
52
|
-
"@eslint-react/eff": "1.22.2
|
|
53
|
-
"@eslint-react/
|
|
54
|
-
"@eslint-react/
|
|
55
|
-
"@eslint-react/types": "1.22.2
|
|
50
|
+
"@eslint-react/ast": "1.22.2",
|
|
51
|
+
"@eslint-react/core": "1.22.2",
|
|
52
|
+
"@eslint-react/eff": "1.22.2",
|
|
53
|
+
"@eslint-react/jsx": "1.22.2",
|
|
54
|
+
"@eslint-react/shared": "1.22.2",
|
|
55
|
+
"@eslint-react/types": "1.22.2"
|
|
56
56
|
},
|
|
57
57
|
"devDependencies": {
|
|
58
58
|
"@types/react": "^19.0.2",
|