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 +4 -8
- package/dist/index.js +1 -1
- package/package.json +6 -6
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
|
-
```
|
|
15
|
-
// eslint.config.js
|
|
16
|
-
|
|
17
|
-
// @ts-check
|
|
14
|
+
```ts
|
|
18
15
|
import js from "@eslint/js";
|
|
19
|
-
import
|
|
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
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "eslint-plugin-react-naming-convention",
|
|
3
|
-
"version": "2.9.4
|
|
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
|
|
49
|
-
"@eslint-react/
|
|
50
|
-
"@eslint-react/shared": "2.9.4
|
|
51
|
-
"@eslint-react/
|
|
52
|
-
"@eslint-react/
|
|
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",
|