eslint-plugin-react-naming-convention 1.26.3-next.7 → 1.26.3-next.9
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.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +3 -4
- package/dist/index.mjs +3 -4
- package/package.json +6 -6
package/dist/index.d.mts
CHANGED
|
@@ -2,7 +2,7 @@ import * as _typescript_eslint_utils_ts_eslint from '@typescript-eslint/utils/ts
|
|
|
2
2
|
|
|
3
3
|
type MessageID$2 = "useJsxFileExtension" | "useJsxFileExtensionAsNeeded";
|
|
4
4
|
|
|
5
|
-
type MessageID$1 = "
|
|
5
|
+
type MessageID$1 = "filenameCaseMismatch" | "filenameEmpty";
|
|
6
6
|
|
|
7
7
|
type MessageID = "usePascalCase" | "useConstantCase";
|
|
8
8
|
|
package/dist/index.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import * as _typescript_eslint_utils_ts_eslint from '@typescript-eslint/utils/ts
|
|
|
2
2
|
|
|
3
3
|
type MessageID$2 = "useJsxFileExtension" | "useJsxFileExtensionAsNeeded";
|
|
4
4
|
|
|
5
|
-
type MessageID$1 = "
|
|
5
|
+
type MessageID$1 = "filenameCaseMismatch" | "filenameEmpty";
|
|
6
6
|
|
|
7
7
|
type MessageID = "usePascalCase" | "useConstantCase";
|
|
8
8
|
|
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.26.3-next.
|
|
39
|
+
var version = "1.26.3-next.9";
|
|
40
40
|
var createRule = shared.createRuleForPlugin("naming-convention");
|
|
41
41
|
|
|
42
42
|
// src/rules/component-name.ts
|
|
@@ -234,8 +234,7 @@ var filename_default = createRule({
|
|
|
234
234
|
description: "enforce naming convention for JSX filenames"
|
|
235
235
|
},
|
|
236
236
|
messages: {
|
|
237
|
-
|
|
238
|
-
filenameCaseMismatchSuggestion: "A file with name '{{name}}' does not match {{rule}}. Should rename to '{{suggestion}}'.",
|
|
237
|
+
filenameCaseMismatch: "A file with name '{{name}}' does not match {{rule}}. Should rename to '{{suggestion}}'.",
|
|
239
238
|
filenameEmpty: "A file must have non-empty name."
|
|
240
239
|
},
|
|
241
240
|
schema: schema2
|
|
@@ -264,7 +263,7 @@ var filename_default = createRule({
|
|
|
264
263
|
return;
|
|
265
264
|
}
|
|
266
265
|
context.report({
|
|
267
|
-
messageId: "
|
|
266
|
+
messageId: "filenameCaseMismatch",
|
|
268
267
|
node,
|
|
269
268
|
data: {
|
|
270
269
|
name: context.filename,
|
package/dist/index.mjs
CHANGED
|
@@ -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.26.3-next.
|
|
13
|
+
var version = "1.26.3-next.9";
|
|
14
14
|
var createRule = createRuleForPlugin("naming-convention");
|
|
15
15
|
|
|
16
16
|
// src/rules/component-name.ts
|
|
@@ -208,8 +208,7 @@ var filename_default = createRule({
|
|
|
208
208
|
description: "enforce naming convention for JSX filenames"
|
|
209
209
|
},
|
|
210
210
|
messages: {
|
|
211
|
-
|
|
212
|
-
filenameCaseMismatchSuggestion: "A file with name '{{name}}' does not match {{rule}}. Should rename to '{{suggestion}}'.",
|
|
211
|
+
filenameCaseMismatch: "A file with name '{{name}}' does not match {{rule}}. Should rename to '{{suggestion}}'.",
|
|
213
212
|
filenameEmpty: "A file must have non-empty name."
|
|
214
213
|
},
|
|
215
214
|
schema: schema2
|
|
@@ -238,7 +237,7 @@ var filename_default = createRule({
|
|
|
238
237
|
return;
|
|
239
238
|
}
|
|
240
239
|
context.report({
|
|
241
|
-
messageId: "
|
|
240
|
+
messageId: "filenameCaseMismatch",
|
|
242
241
|
node,
|
|
243
242
|
data: {
|
|
244
243
|
name: context.filename,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "eslint-plugin-react-naming-convention",
|
|
3
|
-
"version": "1.26.3-next.
|
|
3
|
+
"version": "1.26.3-next.9",
|
|
4
4
|
"description": "ESLint React's ESLint plugin for naming convention related rules.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"react",
|
|
@@ -49,11 +49,11 @@
|
|
|
49
49
|
"@typescript-eslint/utils": "^8.23.0",
|
|
50
50
|
"string-ts": "^2.2.1",
|
|
51
51
|
"ts-pattern": "^5.6.2",
|
|
52
|
-
"@eslint-react/ast": "1.26.3-next.
|
|
53
|
-
"@eslint-react/core": "1.26.3-next.
|
|
54
|
-
"@eslint-react/
|
|
55
|
-
"@eslint-react/
|
|
56
|
-
"@eslint-react/eff": "1.26.3-next.
|
|
52
|
+
"@eslint-react/ast": "1.26.3-next.9",
|
|
53
|
+
"@eslint-react/core": "1.26.3-next.9",
|
|
54
|
+
"@eslint-react/shared": "1.26.3-next.9",
|
|
55
|
+
"@eslint-react/jsx": "1.26.3-next.9",
|
|
56
|
+
"@eslint-react/eff": "1.26.3-next.9"
|
|
57
57
|
},
|
|
58
58
|
"devDependencies": {
|
|
59
59
|
"@types/react": "^19.0.8",
|