eslint-plugin-react-debug 1.27.1-beta.2 → 1.27.1-beta.5
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 +21 -16
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +7 -7
package/README.md
CHANGED
|
@@ -6,32 +6,37 @@ Debugging rules.
|
|
|
6
6
|
|
|
7
7
|
```sh
|
|
8
8
|
# npm
|
|
9
|
-
npm install --save-dev eslint-plugin-react-
|
|
9
|
+
npm install --save-dev eslint-plugin-react-debug
|
|
10
10
|
```
|
|
11
11
|
|
|
12
12
|
## Setup
|
|
13
13
|
|
|
14
14
|
```js
|
|
15
|
-
//
|
|
15
|
+
// eslint.config.js
|
|
16
16
|
|
|
17
|
+
// @ts-check
|
|
17
18
|
import js from "@eslint/js";
|
|
18
19
|
import reactDebug from "eslint-plugin-react-debug";
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
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
|
+
reactDebug.configs.all,
|
|
28
|
+
],
|
|
29
|
+
languageOptions: {
|
|
30
|
+
parser: tseslint.parser,
|
|
31
|
+
parserOptions: {
|
|
32
|
+
projectService: true,
|
|
32
33
|
},
|
|
33
34
|
},
|
|
34
|
-
|
|
35
|
+
rules: {
|
|
36
|
+
// Put rules you want to override here
|
|
37
|
+
"react-debug/function-component": "warn",
|
|
38
|
+
},
|
|
39
|
+
});
|
|
35
40
|
```
|
|
36
41
|
|
|
37
42
|
## Rules
|
package/dist/index.js
CHANGED
package/dist/index.mjs
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "eslint-plugin-react-debug",
|
|
3
|
-
"version": "1.27.1-beta.
|
|
3
|
+
"version": "1.27.1-beta.5",
|
|
4
4
|
"description": "ESLint React's ESLint plugin for debugging related rules.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"react",
|
|
@@ -49,12 +49,12 @@
|
|
|
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.
|
|
53
|
-
"@eslint-react/
|
|
54
|
-
"@eslint-react/
|
|
55
|
-
"@eslint-react/jsx": "1.27.1-beta.
|
|
56
|
-
"@eslint-react/var": "1.27.1-beta.
|
|
57
|
-
"@eslint-react/
|
|
52
|
+
"@eslint-react/ast": "1.27.1-beta.5",
|
|
53
|
+
"@eslint-react/eff": "1.27.1-beta.5",
|
|
54
|
+
"@eslint-react/shared": "1.27.1-beta.5",
|
|
55
|
+
"@eslint-react/jsx": "1.27.1-beta.5",
|
|
56
|
+
"@eslint-react/var": "1.27.1-beta.5",
|
|
57
|
+
"@eslint-react/core": "1.27.1-beta.5"
|
|
58
58
|
},
|
|
59
59
|
"devDependencies": {
|
|
60
60
|
"@types/react": "^19.0.10",
|