eslint-plugin-react-naming-convention 2.4.0-next.9 → 2.4.1-beta.0

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.
Files changed (2) hide show
  1. package/dist/index.js +6 -26
  2. package/package.json +11 -11
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.0-next.9";
42
+ var version = "2.4.1-beta.0";
43
43
 
44
44
  //#endregion
45
45
  //#region src/utils/create-rule.ts
@@ -77,15 +77,11 @@ const schema$3 = [{ anyOf: [{
77
77
  }
78
78
  }] }];
79
79
  const RULE_NAME$4 = "component-name";
80
- const RULE_FEATURES$4 = ["CFG"];
81
80
  var component_name_default = createRule({
82
81
  meta: {
83
82
  type: "problem",
84
83
  defaultOptions: [...defaultOptions$3],
85
- docs: {
86
- description: "Enforces naming conventions for components.",
87
- [Symbol.for("rule_features")]: RULE_FEATURES$4
88
- },
84
+ docs: { description: "Enforces naming conventions for components." },
89
85
  messages: { invalidComponentName: "A component name '{{name}}' does not match {{rule}}." },
90
86
  schema: schema$3
91
87
  },
@@ -160,14 +156,10 @@ function isValidName(name$2, options) {
160
156
  //#endregion
161
157
  //#region src/rules/context-name.ts
162
158
  const RULE_NAME$3 = "context-name";
163
- const RULE_FEATURES$3 = [];
164
159
  var context_name_default = createRule({
165
160
  meta: {
166
161
  type: "problem",
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
- },
162
+ docs: { description: "Enforces context name to be a valid component name with the suffix `Context`." },
171
163
  messages: { invalidContextName: "A context name must be a valid component name with the suffix 'Context'." },
172
164
  schema: []
173
165
  },
@@ -199,7 +191,6 @@ function create$3(context) {
199
191
  //#endregion
200
192
  //#region src/rules/filename.ts
201
193
  const RULE_NAME$2 = "filename";
202
- const RULE_FEATURES$2 = ["CFG"];
203
194
  const defaultOptions$2 = [{
204
195
  excepts: [
205
196
  "index",
@@ -249,10 +240,7 @@ var filename_default = createRule({
249
240
  meta: {
250
241
  type: "problem",
251
242
  defaultOptions: [...defaultOptions$2],
252
- docs: {
253
- description: "Enforces consistent file naming conventions.",
254
- [Symbol.for("rule_features")]: RULE_FEATURES$2
255
- },
243
+ docs: { description: "Enforces consistent file naming conventions." },
256
244
  messages: {
257
245
  empty: "A file must have non-empty name.",
258
246
  invalidCase: "A file with name '{{name}}' does not match {{rule}}. Rename it to '{{suggestion}}'."
@@ -301,7 +289,6 @@ function create$2(context) {
301
289
  //#endregion
302
290
  //#region src/rules/filename-extension.ts
303
291
  const RULE_NAME$1 = "filename-extension";
304
- const RULE_FEATURES$1 = ["CFG"];
305
292
  const defaultOptions$1 = [{
306
293
  allow: "as-needed",
307
294
  extensions: [".jsx", ".tsx"],
@@ -330,10 +317,7 @@ var filename_extension_default = createRule({
330
317
  meta: {
331
318
  type: "problem",
332
319
  defaultOptions: [...defaultOptions$1],
333
- docs: {
334
- description: "Enforces consistent file naming conventions.",
335
- [Symbol.for("rule_features")]: RULE_FEATURES$1
336
- },
320
+ docs: { description: "Enforces consistent file naming conventions." },
337
321
  messages: {
338
322
  missingJSXExtension: "Use {{extensions}} file extension for JSX files.",
339
323
  unnecessaryJSXExtension: "Do not use {{extensions}} file extension for files without JSX."
@@ -384,7 +368,6 @@ function create$1(context) {
384
368
  //#endregion
385
369
  //#region src/rules/use-state.ts
386
370
  const RULE_NAME = "use-state";
387
- const RULE_FEATURES = ["CFG"];
388
371
  const defaultOptions = [{
389
372
  enforceAssignment: false,
390
373
  enforceSetterName: true
@@ -406,10 +389,7 @@ const schema = [{
406
389
  var use_state_default = createRule({
407
390
  meta: {
408
391
  type: "problem",
409
- docs: {
410
- description: "Enforces destructuring and symmetric naming of `useState` hook value and setter.",
411
- [Symbol.for("rule_features")]: RULE_FEATURES
412
- },
392
+ docs: { description: "Enforces destructuring and symmetric naming of `useState` hook value and setter." },
413
393
  messages: {
414
394
  invalidAssignment: "useState should be destructured into a value and setter pair, e.g., const [state, setState] = useState(...).",
415
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.0-next.9",
3
+ "version": "2.4.1-beta.0",
4
4
  "description": "ESLint React's ESLint plugin for naming convention related rules.",
5
5
  "keywords": [
6
6
  "react",
@@ -38,22 +38,22 @@
38
38
  "./package.json"
39
39
  ],
40
40
  "dependencies": {
41
- "@typescript-eslint/scope-manager": "^8.50.0",
42
- "@typescript-eslint/type-utils": "^8.50.0",
43
- "@typescript-eslint/types": "^8.50.0",
44
- "@typescript-eslint/utils": "^8.50.0",
41
+ "@typescript-eslint/scope-manager": "^8.50.1",
42
+ "@typescript-eslint/type-utils": "^8.50.1",
43
+ "@typescript-eslint/types": "^8.50.1",
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.0-next.9",
48
- "@eslint-react/core": "2.4.0-next.9",
49
- "@eslint-react/eff": "2.4.0-next.9",
50
- "@eslint-react/shared": "2.4.0-next.9",
51
- "@eslint-react/var": "2.4.0-next.9"
47
+ "@eslint-react/ast": "2.4.1-beta.0",
48
+ "@eslint-react/core": "2.4.1-beta.0",
49
+ "@eslint-react/eff": "2.4.1-beta.0",
50
+ "@eslint-react/shared": "2.4.1-beta.0",
51
+ "@eslint-react/var": "2.4.1-beta.0"
52
52
  },
53
53
  "devDependencies": {
54
54
  "@types/react": "^19.2.7",
55
55
  "@types/react-dom": "^19.2.3",
56
- "tsdown": "^0.18.0",
56
+ "tsdown": "^0.18.2",
57
57
  "@local/configs": "0.0.0"
58
58
  },
59
59
  "peerDependencies": {