eslint-plugin-react-naming-convention 2.9.4-next.0 → 2.9.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
@@ -11,12 +11,9 @@ npm install --save-dev eslint-plugin-react-naming-convention
11
11
 
12
12
  ## Setup
13
13
 
14
- ```js
15
- // eslint.config.js
16
-
17
- // @ts-check
14
+ ```ts
18
15
  import js from "@eslint/js";
19
- import reactNamingConvention from "eslint-plugin-react-naming-convention";
16
+ import namingConvention from "eslint-plugin-react-naming-convention";
20
17
  import { defineConfig } from "eslint/config";
21
18
  import tseslint from "typescript-eslint";
22
19
 
@@ -26,10 +23,9 @@ export default defineConfig(
26
23
  extends: [
27
24
  js.configs.recommended,
28
25
  tseslint.configs.recommended,
26
+ // Add this plugin's config below js/tseslint configs
27
+ namingConvention.configs.recommended,
29
28
  ],
30
- plugins: {
31
- "react-naming-convention": reactNamingConvention,
32
- },
33
29
  rules: {
34
30
  // Put rules you want to use here
35
31
  "react-naming-convention/component-name": "warn",
package/dist/index.js CHANGED
@@ -42,7 +42,7 @@ const rules = {
42
42
  //#endregion
43
43
  //#region package.json
44
44
  var name = "eslint-plugin-react-naming-convention";
45
- var version = "2.9.4-next.0";
45
+ var version = "2.9.4";
46
46
 
47
47
  //#endregion
48
48
  //#region src/utils/create-rule.ts
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eslint-plugin-react-naming-convention",
3
- "version": "2.9.4-next.0",
3
+ "version": "2.9.4",
4
4
  "description": "ESLint React's ESLint plugin for naming convention related rules.",
5
5
  "keywords": [
6
6
  "react",
@@ -45,11 +45,11 @@
45
45
  "compare-versions": "^6.1.1",
46
46
  "string-ts": "^2.3.1",
47
47
  "ts-pattern": "^5.9.0",
48
- "@eslint-react/ast": "2.9.4-next.0",
49
- "@eslint-react/core": "2.9.4-next.0",
50
- "@eslint-react/shared": "2.9.4-next.0",
51
- "@eslint-react/eff": "2.9.4-next.0",
52
- "@eslint-react/var": "2.9.4-next.0"
48
+ "@eslint-react/ast": "2.9.4",
49
+ "@eslint-react/eff": "2.9.4",
50
+ "@eslint-react/shared": "2.9.4",
51
+ "@eslint-react/var": "2.9.4",
52
+ "@eslint-react/core": "2.9.4"
53
53
  },
54
54
  "devDependencies": {
55
55
  "@types/react": "^19.2.10",