eslint-plugin-react-naming-convention 2.3.11 → 2.3.12-beta.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 +21 -5
- 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.3.
|
|
42
|
+
var version = "2.3.12-beta.1";
|
|
43
43
|
|
|
44
44
|
//#endregion
|
|
45
45
|
//#region src/utils/create-rule.ts
|
|
@@ -77,11 +77,15 @@ const schema$2 = [{ anyOf: [{
|
|
|
77
77
|
}
|
|
78
78
|
}] }];
|
|
79
79
|
const RULE_NAME$4 = "component-name";
|
|
80
|
+
const RULE_FEATURES$4 = ["CFG"];
|
|
80
81
|
var component_name_default = createRule({
|
|
81
82
|
meta: {
|
|
82
83
|
type: "problem",
|
|
83
84
|
defaultOptions: [...defaultOptions$2],
|
|
84
|
-
docs: {
|
|
85
|
+
docs: {
|
|
86
|
+
description: "Enforces naming conventions for components.",
|
|
87
|
+
[Symbol.for("rule_features")]: RULE_FEATURES$4
|
|
88
|
+
},
|
|
85
89
|
messages: { invalidComponentName: "A component name '{{name}}' does not match {{rule}}." },
|
|
86
90
|
schema: schema$2
|
|
87
91
|
},
|
|
@@ -156,10 +160,14 @@ function isValidName(name$2, options) {
|
|
|
156
160
|
//#endregion
|
|
157
161
|
//#region src/rules/context-name.ts
|
|
158
162
|
const RULE_NAME$3 = "context-name";
|
|
163
|
+
const RULE_FEATURES$3 = [];
|
|
159
164
|
var context_name_default = createRule({
|
|
160
165
|
meta: {
|
|
161
166
|
type: "problem",
|
|
162
|
-
docs: {
|
|
167
|
+
docs: {
|
|
168
|
+
description: "Enforces context name to be a valid component name with the suffix `Context`.",
|
|
169
|
+
[Symbol.for("rule_features")]: RULE_FEATURES$3
|
|
170
|
+
},
|
|
163
171
|
messages: { invalidContextName: "A context name must be a valid component name with the suffix 'Context'." },
|
|
164
172
|
schema: []
|
|
165
173
|
},
|
|
@@ -191,6 +199,7 @@ function create$3(context) {
|
|
|
191
199
|
//#endregion
|
|
192
200
|
//#region src/rules/filename.ts
|
|
193
201
|
const RULE_NAME$2 = "filename";
|
|
202
|
+
const RULE_FEATURES$2 = ["CFG"];
|
|
194
203
|
const defaultOptions$1 = [{
|
|
195
204
|
excepts: [
|
|
196
205
|
"index",
|
|
@@ -240,7 +249,10 @@ var filename_default = createRule({
|
|
|
240
249
|
meta: {
|
|
241
250
|
type: "problem",
|
|
242
251
|
defaultOptions: [...defaultOptions$1],
|
|
243
|
-
docs: {
|
|
252
|
+
docs: {
|
|
253
|
+
description: "Enforces consistent file naming conventions.",
|
|
254
|
+
[Symbol.for("rule_features")]: RULE_FEATURES$2
|
|
255
|
+
},
|
|
244
256
|
messages: {
|
|
245
257
|
empty: "A file must have non-empty name.",
|
|
246
258
|
invalidCase: "A file with name '{{name}}' does not match {{rule}}. Rename it to '{{suggestion}}'."
|
|
@@ -289,6 +301,7 @@ function create$2(context) {
|
|
|
289
301
|
//#endregion
|
|
290
302
|
//#region src/rules/filename-extension.ts
|
|
291
303
|
const RULE_NAME$1 = "filename-extension";
|
|
304
|
+
const RULE_FEATURES$1 = ["CFG"];
|
|
292
305
|
const defaultOptions = [{
|
|
293
306
|
allow: "as-needed",
|
|
294
307
|
extensions: [".jsx", ".tsx"],
|
|
@@ -317,7 +330,10 @@ var filename_extension_default = createRule({
|
|
|
317
330
|
meta: {
|
|
318
331
|
type: "problem",
|
|
319
332
|
defaultOptions: [...defaultOptions],
|
|
320
|
-
docs: {
|
|
333
|
+
docs: {
|
|
334
|
+
description: "Enforces consistent file naming conventions.",
|
|
335
|
+
[Symbol.for("rule_features")]: RULE_FEATURES$1
|
|
336
|
+
},
|
|
321
337
|
messages: {
|
|
322
338
|
missingJSXExtension: "Use {{extensions}} file extension for JSX files.",
|
|
323
339
|
unnecessaryJSXExtension: "Do not use {{extensions}} file extension for files without JSX."
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "eslint-plugin-react-naming-convention",
|
|
3
|
-
"version": "2.3.
|
|
3
|
+
"version": "2.3.12-beta.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.48.1",
|
|
45
45
|
"string-ts": "^2.3.1",
|
|
46
46
|
"ts-pattern": "^5.9.0",
|
|
47
|
-
"@eslint-react/ast": "2.3.
|
|
48
|
-
"@eslint-react/core": "2.3.
|
|
49
|
-
"@eslint-react/
|
|
50
|
-
"@eslint-react/
|
|
51
|
-
"@eslint-react/var": "2.3.
|
|
47
|
+
"@eslint-react/ast": "2.3.12-beta.1",
|
|
48
|
+
"@eslint-react/core": "2.3.12-beta.1",
|
|
49
|
+
"@eslint-react/shared": "2.3.12-beta.1",
|
|
50
|
+
"@eslint-react/eff": "2.3.12-beta.1",
|
|
51
|
+
"@eslint-react/var": "2.3.12-beta.1"
|
|
52
52
|
},
|
|
53
53
|
"devDependencies": {
|
|
54
54
|
"@types/react": "^19.2.7",
|