@eslint-react/eslint-plugin 1.42.2-beta.5 → 1.42.2-next.1
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 +12 -23
- 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 composable ESLint rules for React and friends.
|
|
9
9
|
|
|
10
10
|
## Features
|
|
11
11
|
|
|
12
|
-
-
|
|
13
|
-
-
|
|
14
|
-
-
|
|
15
|
-
-
|
|
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,38 +82,27 @@ export default tseslint.config({
|
|
|
82
82
|
|
|
83
83
|
### Bare Bones
|
|
84
84
|
|
|
85
|
-
- `
|
|
85
|
+
- **Core** (`core`)\
|
|
86
86
|
Enable rules for `"react"`.
|
|
87
|
-
- `dom
|
|
87
|
+
- **DOM** (`dom`)\
|
|
88
88
|
Enable rules for `"react-dom"`.
|
|
89
|
-
- `web-api
|
|
89
|
+
- **Web API** (`web-api`)\
|
|
90
90
|
Enable rules for interacting with Web APIs.
|
|
91
91
|
|
|
92
92
|
### General Purpose
|
|
93
93
|
|
|
94
|
-
- `recommended
|
|
94
|
+
- **Recommended** (`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 `core`, `dom`, and `web-api` presets._
|
|
97
97
|
|
|
98
98
|
### TypeScript Specialized
|
|
99
99
|
|
|
100
|
-
- `recommended-typescript
|
|
100
|
+
- **Recommended TypeScript** (`recommended-typescript`)\
|
|
101
101
|
Same as the `recommended` preset but disables rules that can be enforced by TypeScript.
|
|
102
102
|
|
|
103
|
-
- `recommended-type-checked
|
|
103
|
+
- **Recommended Type-Checked** (`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
|
-
|
|
117
106
|
[Full Presets List ↗](https://eslint-react.xyz/docs/presets)
|
|
118
107
|
|
|
119
108
|
## 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-
|
|
4
|
-
"description": "A series of
|
|
3
|
+
"version": "1.42.2-next.1",
|
|
4
|
+
"description": "A series of composable 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/
|
|
54
|
-
"@eslint-react/
|
|
55
|
-
"
|
|
56
|
-
"eslint-plugin-react-
|
|
57
|
-
"eslint-
|
|
58
|
-
"eslint-plugin-react-
|
|
59
|
-
"eslint-plugin-react-x": "1.42.2-
|
|
60
|
-
"eslint-plugin-react-
|
|
61
|
-
"eslint-plugin-react-
|
|
53
|
+
"@eslint-react/shared": "1.42.2-next.1",
|
|
54
|
+
"@eslint-react/eff": "1.42.2-next.1",
|
|
55
|
+
"eslint-plugin-react-debug": "1.42.2-next.1",
|
|
56
|
+
"eslint-plugin-react-dom": "1.42.2-next.1",
|
|
57
|
+
"@eslint-react/kit": "1.42.2-next.1",
|
|
58
|
+
"eslint-plugin-react-naming-convention": "1.42.2-next.1",
|
|
59
|
+
"eslint-plugin-react-x": "1.42.2-next.1",
|
|
60
|
+
"eslint-plugin-react-web-api": "1.42.2-next.1",
|
|
61
|
+
"eslint-plugin-react-hooks-extra": "1.42.2-next.1"
|
|
62
62
|
},
|
|
63
63
|
"devDependencies": {
|
|
64
64
|
"tsup": "^8.4.0",
|