eslint-plugin-react-naming-convention 1.23.2-next.1 → 1.23.2-next.3
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 +3 -3
- 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.23.2-next.
|
|
39
|
+
var version = "1.23.2-next.3";
|
|
40
40
|
var createRule = shared.createRuleForPlugin("naming-convention");
|
|
41
41
|
|
|
42
42
|
// src/rules/component-name.ts
|
|
@@ -366,7 +366,7 @@ var use_state_default = createRule({
|
|
|
366
366
|
},
|
|
367
367
|
name: RULE_NAME4,
|
|
368
368
|
create(context) {
|
|
369
|
-
const alias = shared.
|
|
369
|
+
const alias = shared.getSettingsFromContext(context).additionalHooks?.useState ?? [];
|
|
370
370
|
const { ctx, listeners } = core.useComponentCollector(context);
|
|
371
371
|
return {
|
|
372
372
|
...listeners,
|
package/dist/index.mjs
CHANGED
|
@@ -2,7 +2,7 @@ import * as AST from '@eslint-react/ast';
|
|
|
2
2
|
import { useComponentCollector, useComponentCollectorLegacy, isUseStateCall, isReactHookCallWithNameLoose } from '@eslint-react/core';
|
|
3
3
|
import { O, isString, isObject, F, isNullable } from '@eslint-react/eff';
|
|
4
4
|
import * as JSX from '@eslint-react/jsx';
|
|
5
|
-
import { createRuleForPlugin,
|
|
5
|
+
import { createRuleForPlugin, getSettingsFromContext, RE_CONSTANT_CASE, RE_PASCAL_CASE, RE_CAMEL_CASE, RE_KEBAB_CASE, RE_SNAKE_CASE } from '@eslint-react/shared';
|
|
6
6
|
import { match } from 'ts-pattern';
|
|
7
7
|
import path from 'node:path';
|
|
8
8
|
import { capitalize, pascalCase, camelCase, kebabCase, snakeCase } from 'string-ts';
|
|
@@ -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.23.2-next.
|
|
13
|
+
var version = "1.23.2-next.3";
|
|
14
14
|
var createRule = createRuleForPlugin("naming-convention");
|
|
15
15
|
|
|
16
16
|
// src/rules/component-name.ts
|
|
@@ -340,7 +340,7 @@ var use_state_default = createRule({
|
|
|
340
340
|
},
|
|
341
341
|
name: RULE_NAME4,
|
|
342
342
|
create(context) {
|
|
343
|
-
const alias =
|
|
343
|
+
const alias = getSettingsFromContext(context).additionalHooks?.useState ?? [];
|
|
344
344
|
const { ctx, listeners } = useComponentCollector(context);
|
|
345
345
|
return {
|
|
346
346
|
...listeners,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "eslint-plugin-react-naming-convention",
|
|
3
|
-
"version": "1.23.2-next.
|
|
3
|
+
"version": "1.23.2-next.3",
|
|
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.19.0",
|
|
48
48
|
"string-ts": "^2.2.0",
|
|
49
49
|
"ts-pattern": "^5.6.0",
|
|
50
|
-
"@eslint-react/
|
|
51
|
-
"@eslint-react/eff": "1.23.2-next.
|
|
52
|
-
"@eslint-react/
|
|
53
|
-
"@eslint-react/
|
|
54
|
-
"@eslint-react/
|
|
55
|
-
"@eslint-react/
|
|
50
|
+
"@eslint-react/ast": "1.23.2-next.3",
|
|
51
|
+
"@eslint-react/eff": "1.23.2-next.3",
|
|
52
|
+
"@eslint-react/jsx": "1.23.2-next.3",
|
|
53
|
+
"@eslint-react/core": "1.23.2-next.3",
|
|
54
|
+
"@eslint-react/types": "1.23.2-next.3",
|
|
55
|
+
"@eslint-react/shared": "1.23.2-next.3"
|
|
56
56
|
},
|
|
57
57
|
"devDependencies": {
|
|
58
58
|
"@types/react": "^19.0.2",
|