@eslint-react/eslint-plugin 1.42.2-beta.0 → 1.42.2-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 +23 -12
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +11 -11
package/README.md
CHANGED
|
@@ -5,14 +5,14 @@
|
|
|
5
5
|
[](https://npmjs.com/package/@eslint-react/eslint-plugin)
|
|
6
6
|
[](https://npmjs.com/package/@eslint-react/eslint-plugin)
|
|
7
7
|
|
|
8
|
-
A series of
|
|
8
|
+
A series of future-proof ESLint rules for React and friends.
|
|
9
9
|
|
|
10
10
|
## Features
|
|
11
11
|
|
|
12
|
-
- **Modern**: First-class support for TypeScript, React 19, and more.
|
|
13
|
-
- **Flexible**: Increased flexibility with more granular severity control.
|
|
14
|
-
- **Performant**: Built with performance in mind, optimized for large codebases.
|
|
15
|
-
- **Comprehensive**: Handles complex scenarios and identifies problems that other tools might miss.
|
|
12
|
+
- ⚡️ **Modern**: First-class support for TypeScript, React 19, and more.
|
|
13
|
+
- 🎛️ **Flexible**: Increased flexibility with more granular severity control.
|
|
14
|
+
- 🚀 **Performant**: Built with performance in mind, optimized for large codebases.
|
|
15
|
+
- 🔍 **Comprehensive**: Handles complex scenarios and identifies problems that other tools might miss.
|
|
16
16
|
|
|
17
17
|
## Public Packages
|
|
18
18
|
|
|
@@ -82,27 +82,38 @@ export default tseslint.config({
|
|
|
82
82
|
|
|
83
83
|
### Bare Bones
|
|
84
84
|
|
|
85
|
-
-
|
|
85
|
+
- `x`\
|
|
86
86
|
Enable rules for `"react"`.
|
|
87
|
-
-
|
|
87
|
+
- `dom`\
|
|
88
88
|
Enable rules for `"react-dom"`.
|
|
89
|
-
-
|
|
89
|
+
- `web-api`\
|
|
90
90
|
Enable rules for interacting with Web APIs.
|
|
91
91
|
|
|
92
92
|
### General Purpose
|
|
93
93
|
|
|
94
|
-
-
|
|
94
|
+
- `recommended`\
|
|
95
95
|
Enforce rules that are recommended by ESLint React for general purpose React + React DOM projects.\
|
|
96
|
-
_This preset includes the `
|
|
96
|
+
_This preset includes the `x`, `dom`, and `web-api` presets._
|
|
97
97
|
|
|
98
98
|
### TypeScript Specialized
|
|
99
99
|
|
|
100
|
-
-
|
|
100
|
+
- `recommended-typescript`\
|
|
101
101
|
Same as the `recommended` preset but disables rules that can be enforced by TypeScript.
|
|
102
102
|
|
|
103
|
-
-
|
|
103
|
+
- `recommended-type-checked`\
|
|
104
104
|
Same as the `recommended-typescript` preset but enables additional rules that require type information.
|
|
105
105
|
|
|
106
|
+
### Other
|
|
107
|
+
|
|
108
|
+
- `disable-dom`\
|
|
109
|
+
Disable rules in the `dom` preset.
|
|
110
|
+
- `disable-web-api`\
|
|
111
|
+
Disable rules in the `web-api` preset.
|
|
112
|
+
- `disable-type-checked`\
|
|
113
|
+
Disable rules that require type information.
|
|
114
|
+
- `off`\
|
|
115
|
+
Disable all rules in this plugin except for debug rules.
|
|
116
|
+
|
|
106
117
|
[Full Presets List ↗](https://eslint-react.xyz/docs/presets)
|
|
107
118
|
|
|
108
119
|
## Rules
|
package/dist/index.js
CHANGED
package/dist/index.mjs
CHANGED
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@eslint-react/eslint-plugin",
|
|
3
|
-
"version": "1.42.2-beta.
|
|
4
|
-
"description": "A series of
|
|
3
|
+
"version": "1.42.2-beta.5",
|
|
4
|
+
"description": "A series of future-proof ESLint rules for React and friends.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"react",
|
|
7
7
|
"eslint",
|
|
@@ -50,15 +50,15 @@
|
|
|
50
50
|
"@typescript-eslint/type-utils": "^8.29.1",
|
|
51
51
|
"@typescript-eslint/types": "^8.29.1",
|
|
52
52
|
"@typescript-eslint/utils": "^8.29.1",
|
|
53
|
-
"@eslint-react/eff": "1.42.2-beta.
|
|
54
|
-
"@eslint-react/kit": "1.42.2-beta.
|
|
55
|
-
"@eslint-react/shared": "1.42.2-beta.
|
|
56
|
-
"eslint-plugin-react-debug": "1.42.2-beta.
|
|
57
|
-
"eslint-plugin-react-hooks-extra": "1.42.2-beta.
|
|
58
|
-
"eslint-plugin-react-
|
|
59
|
-
"eslint-plugin-react-
|
|
60
|
-
"eslint-plugin-react-
|
|
61
|
-
"eslint-plugin-react-
|
|
53
|
+
"@eslint-react/eff": "1.42.2-beta.5",
|
|
54
|
+
"@eslint-react/kit": "1.42.2-beta.5",
|
|
55
|
+
"@eslint-react/shared": "1.42.2-beta.5",
|
|
56
|
+
"eslint-plugin-react-debug": "1.42.2-beta.5",
|
|
57
|
+
"eslint-plugin-react-hooks-extra": "1.42.2-beta.5",
|
|
58
|
+
"eslint-plugin-react-web-api": "1.42.2-beta.5",
|
|
59
|
+
"eslint-plugin-react-x": "1.42.2-beta.5",
|
|
60
|
+
"eslint-plugin-react-naming-convention": "1.42.2-beta.5",
|
|
61
|
+
"eslint-plugin-react-dom": "1.42.2-beta.5"
|
|
62
62
|
},
|
|
63
63
|
"devDependencies": {
|
|
64
64
|
"tsup": "^8.4.0",
|