eslint-plugin-react-naming-convention 1.52.6-next.0 → 1.52.6
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 +7 -7
package/dist/index.js
CHANGED
|
@@ -55,7 +55,7 @@ var rules = {
|
|
|
55
55
|
|
|
56
56
|
// package.json
|
|
57
57
|
var name2 = "eslint-plugin-react-naming-convention";
|
|
58
|
-
var version = "1.52.6
|
|
58
|
+
var version = "1.52.6";
|
|
59
59
|
var createRule = utils.ESLintUtils.RuleCreator(shared.getDocsUrl("naming-convention"));
|
|
60
60
|
|
|
61
61
|
// src/rules/component-name.ts
|
|
@@ -133,7 +133,7 @@ function create(context) {
|
|
|
133
133
|
const id = AST__namespace.getFunctionId(component);
|
|
134
134
|
if (id?.name == null) continue;
|
|
135
135
|
const name3 = id.name;
|
|
136
|
-
if (isValidName(name3, options))
|
|
136
|
+
if (isValidName(name3, options)) continue;
|
|
137
137
|
context.report({
|
|
138
138
|
messageId: "invalid",
|
|
139
139
|
node: id,
|
package/dist/index.mjs
CHANGED
|
@@ -29,7 +29,7 @@ var rules = {
|
|
|
29
29
|
|
|
30
30
|
// package.json
|
|
31
31
|
var name2 = "eslint-plugin-react-naming-convention";
|
|
32
|
-
var version = "1.52.6
|
|
32
|
+
var version = "1.52.6";
|
|
33
33
|
var createRule = ESLintUtils.RuleCreator(getDocsUrl("naming-convention"));
|
|
34
34
|
|
|
35
35
|
// src/rules/component-name.ts
|
|
@@ -107,7 +107,7 @@ function create(context) {
|
|
|
107
107
|
const id = AST.getFunctionId(component);
|
|
108
108
|
if (id?.name == null) continue;
|
|
109
109
|
const name3 = id.name;
|
|
110
|
-
if (isValidName(name3, options))
|
|
110
|
+
if (isValidName(name3, options)) continue;
|
|
111
111
|
context.report({
|
|
112
112
|
messageId: "invalid",
|
|
113
113
|
node: id,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "eslint-plugin-react-naming-convention",
|
|
3
|
-
"version": "1.52.6
|
|
3
|
+
"version": "1.52.6",
|
|
4
4
|
"description": "ESLint React's ESLint plugin for naming convention related rules.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"react",
|
|
@@ -49,12 +49,12 @@
|
|
|
49
49
|
"@typescript-eslint/utils": "^8.39.1",
|
|
50
50
|
"string-ts": "^2.2.1",
|
|
51
51
|
"ts-pattern": "^5.8.0",
|
|
52
|
-
"@eslint-react/ast": "1.52.6
|
|
53
|
-
"@eslint-react/
|
|
54
|
-
"@eslint-react/
|
|
55
|
-
"@eslint-react/kit": "1.52.6
|
|
56
|
-
"@eslint-react/
|
|
57
|
-
"@eslint-react/
|
|
52
|
+
"@eslint-react/ast": "1.52.6",
|
|
53
|
+
"@eslint-react/eff": "1.52.6",
|
|
54
|
+
"@eslint-react/core": "1.52.6",
|
|
55
|
+
"@eslint-react/kit": "1.52.6",
|
|
56
|
+
"@eslint-react/shared": "1.52.6",
|
|
57
|
+
"@eslint-react/var": "1.52.6"
|
|
58
58
|
},
|
|
59
59
|
"devDependencies": {
|
|
60
60
|
"@types/react": "^19.1.10",
|