eslint-plugin-react-naming-convention 1.37.1-next.4 → 1.37.1-next.5
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 +6 -6
- package/dist/index.mjs +6 -6
- package/package.json +7 -7
package/dist/index.js
CHANGED
|
@@ -49,7 +49,7 @@ var rules = {};
|
|
|
49
49
|
|
|
50
50
|
// package.json
|
|
51
51
|
var name2 = "eslint-plugin-react-naming-convention";
|
|
52
|
-
var version = "1.37.1-next.
|
|
52
|
+
var version = "1.37.1-next.5";
|
|
53
53
|
var createRule = shared.createRuleForPlugin("naming-convention");
|
|
54
54
|
|
|
55
55
|
// src/utils/regexp.ts
|
|
@@ -109,7 +109,7 @@ var component_name_default = createRule({
|
|
|
109
109
|
type: "problem",
|
|
110
110
|
defaultOptions: [...defaultOptions],
|
|
111
111
|
docs: {
|
|
112
|
-
description: "
|
|
112
|
+
description: "Enforces naming conventions for components."
|
|
113
113
|
},
|
|
114
114
|
messages: {
|
|
115
115
|
invalid: "A component name '{{name}}' does not match {{rule}}."
|
|
@@ -187,7 +187,7 @@ var context_name_default = createRule({
|
|
|
187
187
|
meta: {
|
|
188
188
|
type: "problem",
|
|
189
189
|
docs: {
|
|
190
|
-
description: "
|
|
190
|
+
description: "Enforces context name to be a valid component name with the suffix `Context`."
|
|
191
191
|
},
|
|
192
192
|
messages: {
|
|
193
193
|
invalid: "A context name must be a valid component name with the suffix 'Context'."
|
|
@@ -256,7 +256,7 @@ var filename_default = createRule({
|
|
|
256
256
|
type: "problem",
|
|
257
257
|
defaultOptions: [...defaultOptions2],
|
|
258
258
|
docs: {
|
|
259
|
-
description: "
|
|
259
|
+
description: "Enforces consistent file naming conventions."
|
|
260
260
|
},
|
|
261
261
|
messages: {
|
|
262
262
|
filenameEmpty: "A file must have non-empty name.",
|
|
@@ -343,7 +343,7 @@ var filename_extension_default = createRule({
|
|
|
343
343
|
type: "problem",
|
|
344
344
|
defaultOptions: [...defaultOptions3],
|
|
345
345
|
docs: {
|
|
346
|
-
description: "
|
|
346
|
+
description: "Enforces consistent file naming conventions."
|
|
347
347
|
},
|
|
348
348
|
messages: {
|
|
349
349
|
useJsxFileExtension: "Use {{extensions}} file extension for JSX files.",
|
|
@@ -405,7 +405,7 @@ var use_state_default = createRule({
|
|
|
405
405
|
meta: {
|
|
406
406
|
type: "problem",
|
|
407
407
|
docs: {
|
|
408
|
-
description: "
|
|
408
|
+
description: "Enforces destructuring and symmetric naming of `useState` hook value and setter.",
|
|
409
409
|
[Symbol.for("rule_features")]: RULE_FEATURES
|
|
410
410
|
},
|
|
411
411
|
messages: {
|
package/dist/index.mjs
CHANGED
|
@@ -24,7 +24,7 @@ var rules = {};
|
|
|
24
24
|
|
|
25
25
|
// package.json
|
|
26
26
|
var name2 = "eslint-plugin-react-naming-convention";
|
|
27
|
-
var version = "1.37.1-next.
|
|
27
|
+
var version = "1.37.1-next.5";
|
|
28
28
|
var createRule = createRuleForPlugin("naming-convention");
|
|
29
29
|
|
|
30
30
|
// src/utils/regexp.ts
|
|
@@ -84,7 +84,7 @@ var component_name_default = createRule({
|
|
|
84
84
|
type: "problem",
|
|
85
85
|
defaultOptions: [...defaultOptions],
|
|
86
86
|
docs: {
|
|
87
|
-
description: "
|
|
87
|
+
description: "Enforces naming conventions for components."
|
|
88
88
|
},
|
|
89
89
|
messages: {
|
|
90
90
|
invalid: "A component name '{{name}}' does not match {{rule}}."
|
|
@@ -162,7 +162,7 @@ var context_name_default = createRule({
|
|
|
162
162
|
meta: {
|
|
163
163
|
type: "problem",
|
|
164
164
|
docs: {
|
|
165
|
-
description: "
|
|
165
|
+
description: "Enforces context name to be a valid component name with the suffix `Context`."
|
|
166
166
|
},
|
|
167
167
|
messages: {
|
|
168
168
|
invalid: "A context name must be a valid component name with the suffix 'Context'."
|
|
@@ -231,7 +231,7 @@ var filename_default = createRule({
|
|
|
231
231
|
type: "problem",
|
|
232
232
|
defaultOptions: [...defaultOptions2],
|
|
233
233
|
docs: {
|
|
234
|
-
description: "
|
|
234
|
+
description: "Enforces consistent file naming conventions."
|
|
235
235
|
},
|
|
236
236
|
messages: {
|
|
237
237
|
filenameEmpty: "A file must have non-empty name.",
|
|
@@ -318,7 +318,7 @@ var filename_extension_default = createRule({
|
|
|
318
318
|
type: "problem",
|
|
319
319
|
defaultOptions: [...defaultOptions3],
|
|
320
320
|
docs: {
|
|
321
|
-
description: "
|
|
321
|
+
description: "Enforces consistent file naming conventions."
|
|
322
322
|
},
|
|
323
323
|
messages: {
|
|
324
324
|
useJsxFileExtension: "Use {{extensions}} file extension for JSX files.",
|
|
@@ -380,7 +380,7 @@ var use_state_default = createRule({
|
|
|
380
380
|
meta: {
|
|
381
381
|
type: "problem",
|
|
382
382
|
docs: {
|
|
383
|
-
description: "
|
|
383
|
+
description: "Enforces destructuring and symmetric naming of `useState` hook value and setter.",
|
|
384
384
|
[Symbol.for("rule_features")]: RULE_FEATURES
|
|
385
385
|
},
|
|
386
386
|
messages: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "eslint-plugin-react-naming-convention",
|
|
3
|
-
"version": "1.37.1-next.
|
|
3
|
+
"version": "1.37.1-next.5",
|
|
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.27.0",
|
|
50
50
|
"string-ts": "^2.2.1",
|
|
51
51
|
"ts-pattern": "^5.6.2",
|
|
52
|
-
"@eslint-react/ast": "1.37.1-next.
|
|
53
|
-
"@eslint-react/
|
|
54
|
-
"@eslint-react/
|
|
55
|
-
"@eslint-react/
|
|
56
|
-
"@eslint-react/shared": "1.37.1-next.
|
|
57
|
-
"@eslint-react/
|
|
52
|
+
"@eslint-react/ast": "1.37.1-next.5",
|
|
53
|
+
"@eslint-react/eff": "1.37.1-next.5",
|
|
54
|
+
"@eslint-react/core": "1.37.1-next.5",
|
|
55
|
+
"@eslint-react/jsx": "1.37.1-next.5",
|
|
56
|
+
"@eslint-react/shared": "1.37.1-next.5",
|
|
57
|
+
"@eslint-react/var": "1.37.1-next.5"
|
|
58
58
|
},
|
|
59
59
|
"devDependencies": {
|
|
60
60
|
"@types/react": "^19.0.12",
|