eslint-plugin-react-naming-convention 1.20.0-next.9 → 1.20.1-beta.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/README.md +1 -6
- package/dist/index.js +2 -2
- package/dist/index.mjs +2 -2
- package/package.json +12 -12
package/README.md
CHANGED
|
@@ -38,9 +38,4 @@ export default [
|
|
|
38
38
|
|
|
39
39
|
## Rules
|
|
40
40
|
|
|
41
|
-
|
|
42
|
-
| :------------------- | :----------------------------------------------------------------------------------------- | :-: | :-: |
|
|
43
|
-
| `component-name` | Enforces naming conventions for components. | | |
|
|
44
|
-
| `filename` | Enforces naming convention for JSX files. | | |
|
|
45
|
-
| `filename-extension` | Enforces consistent use of the JSX file extension. | | |
|
|
46
|
-
| `use-state` | Enforces destructuring and symmetric naming of `useState` hook value and setter variables. | | |
|
|
41
|
+
<https://eslint-react.xyz/docs/rules/overview#naming-convention-rules>
|
package/dist/index.js
CHANGED
|
@@ -35,7 +35,7 @@ var path__default = /*#__PURE__*/_interopDefault(path);
|
|
|
35
35
|
|
|
36
36
|
// package.json
|
|
37
37
|
var name = "eslint-plugin-react-naming-convention";
|
|
38
|
-
var version = "1.20.
|
|
38
|
+
var version = "1.20.1-beta.2";
|
|
39
39
|
var createRule = shared.createRuleForPlugin("naming-convention");
|
|
40
40
|
|
|
41
41
|
// src/rules/component-name.ts
|
|
@@ -423,7 +423,7 @@ var filename_extension_default = createRule({
|
|
|
423
423
|
});
|
|
424
424
|
var RULE_NAME4 = "use-state";
|
|
425
425
|
var RULE_FEATURES = [
|
|
426
|
-
"
|
|
426
|
+
"CHK"
|
|
427
427
|
];
|
|
428
428
|
function isSetterNameLoose(name2) {
|
|
429
429
|
const fourthChar = [...name2][3];
|
package/dist/index.mjs
CHANGED
|
@@ -9,7 +9,7 @@ import { AST_NODE_TYPES } from '@typescript-eslint/types';
|
|
|
9
9
|
|
|
10
10
|
// package.json
|
|
11
11
|
var name = "eslint-plugin-react-naming-convention";
|
|
12
|
-
var version = "1.20.
|
|
12
|
+
var version = "1.20.1-beta.2";
|
|
13
13
|
var createRule = createRuleForPlugin("naming-convention");
|
|
14
14
|
|
|
15
15
|
// src/rules/component-name.ts
|
|
@@ -397,7 +397,7 @@ var filename_extension_default = createRule({
|
|
|
397
397
|
});
|
|
398
398
|
var RULE_NAME4 = "use-state";
|
|
399
399
|
var RULE_FEATURES = [
|
|
400
|
-
"
|
|
400
|
+
"CHK"
|
|
401
401
|
];
|
|
402
402
|
function isSetterNameLoose(name2) {
|
|
403
403
|
const fourthChar = [...name2][3];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "eslint-plugin-react-naming-convention",
|
|
3
|
-
"version": "1.20.
|
|
3
|
+
"version": "1.20.1-beta.2",
|
|
4
4
|
"description": "ESLint React's ESLint plugin for naming convention related rules.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"react",
|
|
@@ -43,17 +43,17 @@
|
|
|
43
43
|
"./package.json"
|
|
44
44
|
],
|
|
45
45
|
"dependencies": {
|
|
46
|
-
"@typescript-eslint/scope-manager": "^8.18.
|
|
47
|
-
"@typescript-eslint/type-utils": "^8.18.
|
|
48
|
-
"@typescript-eslint/types": "^8.18.
|
|
49
|
-
"@typescript-eslint/utils": "^8.18.
|
|
50
|
-
"ts-pattern": "^5.
|
|
51
|
-
"@eslint-react/ast": "1.20.
|
|
52
|
-
"@eslint-react/core": "1.20.
|
|
53
|
-
"@eslint-react/shared": "1.20.
|
|
54
|
-
"@eslint-react/
|
|
55
|
-
"@eslint-react/
|
|
56
|
-
"@eslint-react/tools": "1.20.
|
|
46
|
+
"@typescript-eslint/scope-manager": "^8.18.1",
|
|
47
|
+
"@typescript-eslint/type-utils": "^8.18.1",
|
|
48
|
+
"@typescript-eslint/types": "^8.18.1",
|
|
49
|
+
"@typescript-eslint/utils": "^8.18.1",
|
|
50
|
+
"ts-pattern": "^5.6.0",
|
|
51
|
+
"@eslint-react/ast": "1.20.1-beta.2",
|
|
52
|
+
"@eslint-react/core": "1.20.1-beta.2",
|
|
53
|
+
"@eslint-react/shared": "1.20.1-beta.2",
|
|
54
|
+
"@eslint-react/types": "1.20.1-beta.2",
|
|
55
|
+
"@eslint-react/jsx": "1.20.1-beta.2",
|
|
56
|
+
"@eslint-react/tools": "1.20.1-beta.2"
|
|
57
57
|
},
|
|
58
58
|
"devDependencies": {
|
|
59
59
|
"@types/react": "^19.0.1",
|