eslint-plugin-react-naming-convention 2.12.5-next.3 → 2.12.5-next.4
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 +5 -5
- package/package.json +6 -6
package/dist/index.js
CHANGED
|
@@ -42,7 +42,7 @@ const rules = {
|
|
|
42
42
|
//#endregion
|
|
43
43
|
//#region package.json
|
|
44
44
|
var name = "eslint-plugin-react-naming-convention";
|
|
45
|
-
var version = "2.12.5-next.
|
|
45
|
+
var version = "2.12.5-next.4";
|
|
46
46
|
|
|
47
47
|
//#endregion
|
|
48
48
|
//#region src/utils/create-rule.ts
|
|
@@ -151,7 +151,7 @@ function isValidName(name, options) {
|
|
|
151
151
|
const RULE_NAME$4 = "context-name";
|
|
152
152
|
var context_name_default = createRule({
|
|
153
153
|
meta: {
|
|
154
|
-
type: "
|
|
154
|
+
type: "suggestion",
|
|
155
155
|
docs: { description: "Enforces the context name to be a valid component name with the suffix 'Context'." },
|
|
156
156
|
messages: { invalidContextName: "A context name must be a valid component name with the suffix 'Context'." },
|
|
157
157
|
schema: []
|
|
@@ -232,7 +232,7 @@ const schema$2 = [{ anyOf: [{
|
|
|
232
232
|
}] }];
|
|
233
233
|
var file_name_default = createRule({
|
|
234
234
|
meta: {
|
|
235
|
-
type: "
|
|
235
|
+
type: "suggestion",
|
|
236
236
|
defaultOptions: [...defaultOptions$2],
|
|
237
237
|
docs: { description: "Enforces consistent file-naming conventions." },
|
|
238
238
|
messages: {
|
|
@@ -309,7 +309,7 @@ const schema$1 = [{ anyOf: [{
|
|
|
309
309
|
}] }];
|
|
310
310
|
var file_name_extension_default = createRule({
|
|
311
311
|
meta: {
|
|
312
|
-
type: "
|
|
312
|
+
type: "suggestion",
|
|
313
313
|
defaultOptions: [...defaultOptions$1],
|
|
314
314
|
docs: { description: "Enforces consistent use of the JSX file extension." },
|
|
315
315
|
messages: {
|
|
@@ -417,7 +417,7 @@ const schema = [{
|
|
|
417
417
|
}];
|
|
418
418
|
var use_state_default = createRule({
|
|
419
419
|
meta: {
|
|
420
|
-
type: "
|
|
420
|
+
type: "suggestion",
|
|
421
421
|
docs: { description: "Enforces destructuring and symmetric naming of the 'useState' hook value and setter." },
|
|
422
422
|
messages: {
|
|
423
423
|
invalidAssignment: "useState should be destructured into a value and setter pair, e.g., const [state, setState] = useState(...).",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "eslint-plugin-react-naming-convention",
|
|
3
|
-
"version": "2.12.5-next.
|
|
3
|
+
"version": "2.12.5-next.4",
|
|
4
4
|
"description": "ESLint React's ESLint plugin for naming convention related rules.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"react",
|
|
@@ -45,11 +45,11 @@
|
|
|
45
45
|
"compare-versions": "^6.1.1",
|
|
46
46
|
"string-ts": "^2.3.1",
|
|
47
47
|
"ts-pattern": "^5.9.0",
|
|
48
|
-
"@eslint-react/ast": "2.12.5-next.
|
|
49
|
-
"@eslint-react/core": "2.12.5-next.
|
|
50
|
-
"@eslint-react/eff": "2.12.5-next.
|
|
51
|
-
"@eslint-react/
|
|
52
|
-
"@eslint-react/
|
|
48
|
+
"@eslint-react/ast": "2.12.5-next.4",
|
|
49
|
+
"@eslint-react/core": "2.12.5-next.4",
|
|
50
|
+
"@eslint-react/eff": "2.12.5-next.4",
|
|
51
|
+
"@eslint-react/var": "2.12.5-next.4",
|
|
52
|
+
"@eslint-react/shared": "2.12.5-next.4"
|
|
53
53
|
},
|
|
54
54
|
"devDependencies": {
|
|
55
55
|
"@types/react": "^19.2.13",
|