@eslint-react/eslint-plugin 1.20.2-next.5 → 1.20.2-next.7
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 +23 -19
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +10 -10
package/README.md
CHANGED
|
@@ -27,44 +27,48 @@ A series of composable ESLint plugins for libraries and frameworks that use Reac
|
|
|
27
27
|
- [`eslint-plugin-react-hooks-extra`](https://github.com/Rel1cx/eslint-react/tree/main/packages/plugins/eslint-plugin-react-hooks-extra) - Extra React Hooks rules.
|
|
28
28
|
- [`eslint-plugin-react-naming-convention`](https://github.com/Rel1cx/eslint-react/tree/main/packages/plugins/eslint-plugin-react-naming-convention) - Naming convention rules.
|
|
29
29
|
|
|
30
|
-
##
|
|
30
|
+
## Installation
|
|
31
|
+
|
|
32
|
+
### Install
|
|
31
33
|
|
|
32
34
|
```sh
|
|
33
35
|
# npm
|
|
34
|
-
npm install --save-dev @eslint-react/eslint-plugin
|
|
36
|
+
npm install --save-dev typescript-eslint @eslint-react/eslint-plugin
|
|
35
37
|
|
|
36
38
|
# yarn
|
|
37
|
-
yarn add --dev @eslint-react/eslint-plugin
|
|
39
|
+
yarn add --dev typescript-eslint @eslint-react/eslint-plugin
|
|
38
40
|
|
|
39
41
|
# pnpm
|
|
40
|
-
pnpm add --save-dev @eslint-react/eslint-plugin
|
|
42
|
+
pnpm add --save-dev typescript-eslint @eslint-react/eslint-plugin
|
|
41
43
|
```
|
|
42
44
|
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
### Flat Config
|
|
45
|
+
### Setup
|
|
46
46
|
|
|
47
47
|
```js
|
|
48
48
|
// eslint.config.js
|
|
49
49
|
|
|
50
50
|
// @ts-check
|
|
51
|
-
import js from "@eslint/js";
|
|
52
51
|
import react from "@eslint-react/eslint-plugin";
|
|
53
|
-
import
|
|
54
|
-
|
|
55
|
-
export default
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
52
|
+
import tseslint from "typescript-eslint";
|
|
53
|
+
|
|
54
|
+
export default tseslint.config({
|
|
55
|
+
files: ["**/*.ts", "**/*.tsx"],
|
|
56
|
+
extends: [
|
|
57
|
+
react.configs["recommended"],
|
|
58
|
+
],
|
|
59
|
+
languageOptions: {
|
|
60
|
+
parser: tseslint.parser,
|
|
61
|
+
parserOptions: {
|
|
62
|
+
projectService: true,
|
|
62
63
|
},
|
|
63
64
|
},
|
|
64
|
-
|
|
65
|
+
rules: {
|
|
66
|
+
// Put rules you want to override here
|
|
67
|
+
},
|
|
68
|
+
});
|
|
65
69
|
```
|
|
66
70
|
|
|
67
|
-
[Full Installation Guide ↗](https://eslint-react.xyz/docs/
|
|
71
|
+
[Full Installation Guide ↗](https://eslint-react.xyz/docs/getting-started)
|
|
68
72
|
|
|
69
73
|
</details>
|
|
70
74
|
|
package/dist/index.js
CHANGED
package/dist/index.mjs
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@eslint-react/eslint-plugin",
|
|
3
|
-
"version": "1.20.2-next.
|
|
3
|
+
"version": "1.20.2-next.7",
|
|
4
4
|
"description": "The main ESLint plugin of ESLint React. Contains all the rules and presets of ESLint React.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"react",
|
|
@@ -50,15 +50,15 @@
|
|
|
50
50
|
"@typescript-eslint/type-utils": "^8.18.1",
|
|
51
51
|
"@typescript-eslint/types": "^8.18.1",
|
|
52
52
|
"@typescript-eslint/utils": "^8.18.1",
|
|
53
|
-
"@eslint-react/eff": "1.20.2-next.
|
|
54
|
-
"@eslint-react/shared": "1.20.2-next.
|
|
55
|
-
"eslint-plugin-react-debug": "1.20.2-next.
|
|
56
|
-
"@eslint-react/types": "1.20.2-next.
|
|
57
|
-
"eslint-plugin-react-dom": "1.20.2-next.
|
|
58
|
-
"eslint-plugin-react-hooks-extra": "1.20.2-next.
|
|
59
|
-
"eslint-plugin-react-naming-convention": "1.20.2-next.
|
|
60
|
-
"eslint-plugin-react-web-api": "1.20.2-next.
|
|
61
|
-
"eslint-plugin-react-x": "1.20.2-next.
|
|
53
|
+
"@eslint-react/eff": "1.20.2-next.7",
|
|
54
|
+
"@eslint-react/shared": "1.20.2-next.7",
|
|
55
|
+
"eslint-plugin-react-debug": "1.20.2-next.7",
|
|
56
|
+
"@eslint-react/types": "1.20.2-next.7",
|
|
57
|
+
"eslint-plugin-react-dom": "1.20.2-next.7",
|
|
58
|
+
"eslint-plugin-react-hooks-extra": "1.20.2-next.7",
|
|
59
|
+
"eslint-plugin-react-naming-convention": "1.20.2-next.7",
|
|
60
|
+
"eslint-plugin-react-web-api": "1.20.2-next.7",
|
|
61
|
+
"eslint-plugin-react-x": "1.20.2-next.7"
|
|
62
62
|
},
|
|
63
63
|
"devDependencies": {
|
|
64
64
|
"tsup": "^8.3.5",
|