eslint-plugin-react-naming-convention 2.4.1-beta.0 → 2.4.1-next.1
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 +4 -4
- package/package.json +6 -6
package/dist/index.js
CHANGED
|
@@ -39,7 +39,7 @@ const rules = {
|
|
|
39
39
|
//#endregion
|
|
40
40
|
//#region package.json
|
|
41
41
|
var name = "eslint-plugin-react-naming-convention";
|
|
42
|
-
var version = "2.4.1-
|
|
42
|
+
var version = "2.4.1-next.1";
|
|
43
43
|
|
|
44
44
|
//#endregion
|
|
45
45
|
//#region src/utils/create-rule.ts
|
|
@@ -159,7 +159,7 @@ const RULE_NAME$3 = "context-name";
|
|
|
159
159
|
var context_name_default = createRule({
|
|
160
160
|
meta: {
|
|
161
161
|
type: "problem",
|
|
162
|
-
docs: { description: "Enforces context name to be a valid component name with the suffix
|
|
162
|
+
docs: { description: "Enforces context name to be a valid component name with the suffix 'Context'." },
|
|
163
163
|
messages: { invalidContextName: "A context name must be a valid component name with the suffix 'Context'." },
|
|
164
164
|
schema: []
|
|
165
165
|
},
|
|
@@ -317,7 +317,7 @@ var filename_extension_default = createRule({
|
|
|
317
317
|
meta: {
|
|
318
318
|
type: "problem",
|
|
319
319
|
defaultOptions: [...defaultOptions$1],
|
|
320
|
-
docs: { description: "Enforces consistent file
|
|
320
|
+
docs: { description: "Enforces consistent use of the JSX file extension." },
|
|
321
321
|
messages: {
|
|
322
322
|
missingJSXExtension: "Use {{extensions}} file extension for JSX files.",
|
|
323
323
|
unnecessaryJSXExtension: "Do not use {{extensions}} file extension for files without JSX."
|
|
@@ -389,7 +389,7 @@ const schema = [{
|
|
|
389
389
|
var use_state_default = createRule({
|
|
390
390
|
meta: {
|
|
391
391
|
type: "problem",
|
|
392
|
-
docs: { description: "Enforces destructuring and symmetric naming of
|
|
392
|
+
docs: { description: "Enforces destructuring and symmetric naming of 'useState' hook value and setter." },
|
|
393
393
|
messages: {
|
|
394
394
|
invalidAssignment: "useState should be destructured into a value and setter pair, e.g., const [state, setState] = useState(...).",
|
|
395
395
|
invalidSetterName: "The setter should be named 'set' followed by the capitalized state variable name, e.g., 'setState' for 'state'."
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "eslint-plugin-react-naming-convention",
|
|
3
|
-
"version": "2.4.1-
|
|
3
|
+
"version": "2.4.1-next.1",
|
|
4
4
|
"description": "ESLint React's ESLint plugin for naming convention related rules.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"react",
|
|
@@ -44,11 +44,11 @@
|
|
|
44
44
|
"@typescript-eslint/utils": "^8.50.1",
|
|
45
45
|
"string-ts": "^2.3.1",
|
|
46
46
|
"ts-pattern": "^5.9.0",
|
|
47
|
-
"@eslint-react/ast": "2.4.1-
|
|
48
|
-
"@eslint-react/core": "2.4.1-
|
|
49
|
-
"@eslint-react/
|
|
50
|
-
"@eslint-react/
|
|
51
|
-
"@eslint-react/
|
|
47
|
+
"@eslint-react/ast": "2.4.1-next.1",
|
|
48
|
+
"@eslint-react/core": "2.4.1-next.1",
|
|
49
|
+
"@eslint-react/shared": "2.4.1-next.1",
|
|
50
|
+
"@eslint-react/var": "2.4.1-next.1",
|
|
51
|
+
"@eslint-react/eff": "2.4.1-next.1"
|
|
52
52
|
},
|
|
53
53
|
"devDependencies": {
|
|
54
54
|
"@types/react": "^19.2.7",
|