eslint-plugin-react-naming-convention 2.3.10 → 2.3.11-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.js +7 -9
- package/package.json +7 -7
package/dist/index.js
CHANGED
|
@@ -39,7 +39,7 @@ const rules = {
|
|
|
39
39
|
//#endregion
|
|
40
40
|
//#region package.json
|
|
41
41
|
var name = "eslint-plugin-react-naming-convention";
|
|
42
|
-
var version = "2.3.
|
|
42
|
+
var version = "2.3.11-next.0";
|
|
43
43
|
|
|
44
44
|
//#endregion
|
|
45
45
|
//#region src/utils/create-rule.ts
|
|
@@ -92,15 +92,13 @@ var component_name_default = createRule({
|
|
|
92
92
|
function create$4(context) {
|
|
93
93
|
const options = normalizeOptions(context.options);
|
|
94
94
|
const { rule } = options;
|
|
95
|
-
const
|
|
96
|
-
const
|
|
95
|
+
const fCollector = useComponentCollector(context);
|
|
96
|
+
const cCollector = useComponentCollectorLegacy();
|
|
97
97
|
return {
|
|
98
|
-
...
|
|
99
|
-
...
|
|
98
|
+
...fCollector.listeners,
|
|
99
|
+
...cCollector.listeners,
|
|
100
100
|
"Program:exit"(program) {
|
|
101
|
-
const
|
|
102
|
-
const classComponents = collectorLegacy.ctx.getAllComponents(program);
|
|
103
|
-
for (const { node: component } of functionComponents.values()) {
|
|
101
|
+
for (const { node: component } of fCollector.ctx.getAllComponents(program)) {
|
|
104
102
|
const id = AST.getFunctionId(component);
|
|
105
103
|
if (id?.name == null) continue;
|
|
106
104
|
const name$2 = id.name;
|
|
@@ -114,7 +112,7 @@ function create$4(context) {
|
|
|
114
112
|
}
|
|
115
113
|
});
|
|
116
114
|
}
|
|
117
|
-
for (const { node: component } of
|
|
115
|
+
for (const { node: component } of cCollector.ctx.getAllComponents(program)) {
|
|
118
116
|
const id = AST.getClassId(component);
|
|
119
117
|
if (id?.name == null) continue;
|
|
120
118
|
const name$2 = id.name;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "eslint-plugin-react-naming-convention",
|
|
3
|
-
"version": "2.3.
|
|
3
|
+
"version": "2.3.11-next.0",
|
|
4
4
|
"description": "ESLint React's ESLint plugin for naming convention related rules.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"react",
|
|
@@ -44,16 +44,16 @@
|
|
|
44
44
|
"@typescript-eslint/utils": "^8.48.0",
|
|
45
45
|
"string-ts": "^2.3.1",
|
|
46
46
|
"ts-pattern": "^5.9.0",
|
|
47
|
-
"@eslint-react/ast": "2.3.
|
|
48
|
-
"@eslint-react/core": "2.3.
|
|
49
|
-
"@eslint-react/
|
|
50
|
-
"@eslint-react/
|
|
51
|
-
"@eslint-react/var": "2.3.
|
|
47
|
+
"@eslint-react/ast": "2.3.11-next.0",
|
|
48
|
+
"@eslint-react/core": "2.3.11-next.0",
|
|
49
|
+
"@eslint-react/eff": "2.3.11-next.0",
|
|
50
|
+
"@eslint-react/shared": "2.3.11-next.0",
|
|
51
|
+
"@eslint-react/var": "2.3.11-next.0"
|
|
52
52
|
},
|
|
53
53
|
"devDependencies": {
|
|
54
54
|
"@types/react": "^19.2.7",
|
|
55
55
|
"@types/react-dom": "^19.2.3",
|
|
56
|
-
"tsdown": "^0.17.0-beta.
|
|
56
|
+
"tsdown": "^0.17.0-beta.5",
|
|
57
57
|
"@local/configs": "0.0.0"
|
|
58
58
|
},
|
|
59
59
|
"peerDependencies": {
|