eslint-plugin-react-naming-convention 1.25.1-next.0 → 1.26.0-beta.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 +10 -10
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.
|
|
39
|
+
var version = "1.26.0-beta.3";
|
|
40
40
|
var createRule = shared.createRuleForPlugin("naming-convention");
|
|
41
41
|
|
|
42
42
|
// src/rules/component-name.ts
|
|
@@ -109,7 +109,7 @@ function validate(name2, options) {
|
|
|
109
109
|
return options.allowAllCaps ?? false;
|
|
110
110
|
}
|
|
111
111
|
return shared.RE_PASCAL_CASE.test(normalized);
|
|
112
|
-
}).otherwise(eff.
|
|
112
|
+
}).otherwise(eff.constFalse);
|
|
113
113
|
}
|
|
114
114
|
var component_name_default = createRule({
|
|
115
115
|
meta: {
|
package/dist/index.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as AST from '@eslint-react/ast';
|
|
2
2
|
import { useComponentCollector, useComponentCollectorLegacy, DEFAULT_COMPONENT_HINT, isUseStateCall, isReactHookCallWithNameLoose } from '@eslint-react/core';
|
|
3
|
-
import { isObject,
|
|
3
|
+
import { isObject, constFalse } from '@eslint-react/eff';
|
|
4
4
|
import * as JSX from '@eslint-react/jsx';
|
|
5
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';
|
|
@@ -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.
|
|
13
|
+
var version = "1.26.0-beta.3";
|
|
14
14
|
var createRule = createRuleForPlugin("naming-convention");
|
|
15
15
|
|
|
16
16
|
// src/rules/component-name.ts
|
|
@@ -83,7 +83,7 @@ function validate(name2, options) {
|
|
|
83
83
|
return options.allowAllCaps ?? false;
|
|
84
84
|
}
|
|
85
85
|
return RE_PASCAL_CASE.test(normalized);
|
|
86
|
-
}).otherwise(
|
|
86
|
+
}).otherwise(constFalse);
|
|
87
87
|
}
|
|
88
88
|
var component_name_default = createRule({
|
|
89
89
|
meta: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "eslint-plugin-react-naming-convention",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.26.0-beta.3",
|
|
4
4
|
"description": "ESLint React's ESLint plugin for naming convention related rules.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"react",
|
|
@@ -41,17 +41,17 @@
|
|
|
41
41
|
"./package.json"
|
|
42
42
|
],
|
|
43
43
|
"dependencies": {
|
|
44
|
-
"@typescript-eslint/scope-manager": "^8.
|
|
45
|
-
"@typescript-eslint/type-utils": "^8.
|
|
46
|
-
"@typescript-eslint/types": "^8.
|
|
47
|
-
"@typescript-eslint/utils": "^8.
|
|
44
|
+
"@typescript-eslint/scope-manager": "^8.22.0",
|
|
45
|
+
"@typescript-eslint/type-utils": "^8.22.0",
|
|
46
|
+
"@typescript-eslint/types": "^8.22.0",
|
|
47
|
+
"@typescript-eslint/utils": "^8.22.0",
|
|
48
48
|
"string-ts": "^2.2.0",
|
|
49
49
|
"ts-pattern": "^5.6.2",
|
|
50
|
-
"@eslint-react/ast": "1.
|
|
51
|
-
"@eslint-react/
|
|
52
|
-
"@eslint-react/
|
|
53
|
-
"@eslint-react/
|
|
54
|
-
"@eslint-react/
|
|
50
|
+
"@eslint-react/ast": "1.26.0-beta.3",
|
|
51
|
+
"@eslint-react/core": "1.26.0-beta.3",
|
|
52
|
+
"@eslint-react/eff": "1.26.0-beta.3",
|
|
53
|
+
"@eslint-react/jsx": "1.26.0-beta.3",
|
|
54
|
+
"@eslint-react/shared": "1.26.0-beta.3"
|
|
55
55
|
},
|
|
56
56
|
"devDependencies": {
|
|
57
57
|
"@types/react": "^19.0.8",
|