eslint-plugin-react-naming-convention 1.27.1-beta.1 → 1.27.1-beta.4

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/README.md CHANGED
@@ -12,25 +12,33 @@ npm install --save-dev eslint-plugin-react-naming-convention
12
12
  ## Setup
13
13
 
14
14
  ```js
15
- // @ts-check
15
+ // eslint.config.js
16
16
 
17
+ // @ts-check
17
18
  import js from "@eslint/js";
18
19
  import reactNamingConvention from "eslint-plugin-react-naming-convention";
19
-
20
- export default [
21
- js.configs.recommended,
22
- {
23
- files: ["**/*.{ts,tsx}"],
24
- plugins: {
25
- "react-naming-convention": reactNamingConvention,
26
- },
27
- rules: {
28
- // react-naming-convention recommended rules
29
- "react-naming-convention/filename-extension": ["warn", "as-needed"],
30
- "react-naming-convention/use-state": "warn",
20
+ import tseslint from "typescript-eslint";
21
+
22
+ export default tseslint.config({
23
+ files: ["**/*.ts", "**/*.tsx"],
24
+ extends: [
25
+ js.configs.recommended,
26
+ tseslint.configs.recommended,
27
+ ],
28
+ plugins: {
29
+ "react-naming-convention": reactNamingConvention,
30
+ },
31
+ languageOptions: {
32
+ parser: tseslint.parser,
33
+ parserOptions: {
34
+ projectService: true,
31
35
  },
32
36
  },
33
- ];
37
+ rules: {
38
+ // Put rules you want to use here
39
+ "react-naming-convention/component-name": "warn",
40
+ },
41
+ });
34
42
  ```
35
43
 
36
44
  ## Rules
package/dist/index.js CHANGED
@@ -51,7 +51,7 @@ var rules = {};
51
51
 
52
52
  // package.json
53
53
  var name2 = "eslint-plugin-react-naming-convention";
54
- var version = "1.27.1-beta.1";
54
+ var version = "1.27.1-beta.4";
55
55
  var createRule = shared.createRuleForPlugin("naming-convention");
56
56
 
57
57
  // src/rules/component-name.ts
package/dist/index.mjs CHANGED
@@ -25,7 +25,7 @@ var rules = {};
25
25
 
26
26
  // package.json
27
27
  var name2 = "eslint-plugin-react-naming-convention";
28
- var version = "1.27.1-beta.1";
28
+ var version = "1.27.1-beta.4";
29
29
  var createRule = createRuleForPlugin("naming-convention");
30
30
 
31
31
  // src/rules/component-name.ts
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eslint-plugin-react-naming-convention",
3
- "version": "1.27.1-beta.1",
3
+ "version": "1.27.1-beta.4",
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.24.1",
50
50
  "string-ts": "^2.2.1",
51
51
  "ts-pattern": "^5.6.2",
52
- "@eslint-react/ast": "1.27.1-beta.1",
53
- "@eslint-react/jsx": "1.27.1-beta.1",
54
- "@eslint-react/eff": "1.27.1-beta.1",
55
- "@eslint-react/core": "1.27.1-beta.1",
56
- "@eslint-react/shared": "1.27.1-beta.1"
52
+ "@eslint-react/ast": "1.27.1-beta.4",
53
+ "@eslint-react/core": "1.27.1-beta.4",
54
+ "@eslint-react/eff": "1.27.1-beta.4",
55
+ "@eslint-react/jsx": "1.27.1-beta.4",
56
+ "@eslint-react/shared": "1.27.1-beta.4"
57
57
  },
58
58
  "devDependencies": {
59
59
  "@types/react": "^19.0.10",