@eslint-react/eslint-plugin 1.10.2-next.2 → 1.11.0-next.0
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 +15 -6
- package/dist/index.d.mts +467 -413
- package/dist/index.d.ts +467 -413
- package/dist/index.js +60 -25
- package/dist/index.mjs +60 -26
- package/package.json +10 -9
package/README.md
CHANGED
|
@@ -24,6 +24,7 @@ A series of composable ESLint rules rewritten from scratch for libraries and fra
|
|
|
24
24
|
|
|
25
25
|
- [`eslint-plugin-react-x`](https://github.com/Rel1cx/eslint-react/tree/main/packages/plugins/eslint-plugin-react-x) - Core rules (renderer-agnostic, compatible with x-platform).
|
|
26
26
|
- [`eslint-plugin-react-dom`](https://github.com/Rel1cx/eslint-react/tree/main/packages/plugins/eslint-plugin-react-dom) - DOM specific rules for React DOM.
|
|
27
|
+
- [`eslint-plugin-react-web-api`](https://github.com/Rel1cx/eslint-react/tree/main/packages/plugins/eslint-plugin-react-web-api) - Rules for interacting with Web APIs in React.
|
|
27
28
|
- [`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
29
|
- [`eslint-plugin-react-naming-convention`](https://github.com/Rel1cx/eslint-react/tree/main/packages/plugins/eslint-plugin-react-naming-convention) - Naming convention rules.
|
|
29
30
|
|
|
@@ -120,16 +121,20 @@ Add the plugin to your `.eslintrc.json`:
|
|
|
120
121
|
|
|
121
122
|
- **core**\
|
|
122
123
|
Enable rules that are renderer-agnostic.
|
|
124
|
+
- **dom**\
|
|
125
|
+
Enable rules that are specific to React DOM.
|
|
126
|
+
- **web-api**\
|
|
127
|
+
Enable rules for interacting with Web APIs in React.
|
|
123
128
|
- **recommended**\
|
|
124
129
|
Enable rules that are recommended by ESLint React.\
|
|
125
|
-
_This preset includes the `core`
|
|
130
|
+
_This preset includes the `core`, `dom`, and `web-api` presets._
|
|
126
131
|
- **recommended-type-checked**\
|
|
127
132
|
Enable rules that are recommended by ESLint React with additional rules that require type information.\
|
|
128
133
|
_This preset includes the `recommended` preset._
|
|
129
|
-
- **dom**\
|
|
130
|
-
Enable rules that are specific to React DOM.
|
|
131
134
|
- **disable-dom**\
|
|
132
135
|
Disable rules that are specific to React DOM.
|
|
136
|
+
- **disable-web-api**\
|
|
137
|
+
Disable rules for interacting with Web APIs in React.
|
|
133
138
|
- **disable-type-checked**\
|
|
134
139
|
Disable rules that require type information.
|
|
135
140
|
- **off**\
|
|
@@ -142,16 +147,20 @@ Add the plugin to your `.eslintrc.json`:
|
|
|
142
147
|
|
|
143
148
|
- **core-legacy**\
|
|
144
149
|
Enable rules that are renderer-agnostic.
|
|
150
|
+
- **dom-legacy**\
|
|
151
|
+
Enable rules that are specific to React DOM.
|
|
152
|
+
- **web-api-legacy**\
|
|
153
|
+
Enable rules for interacting with Web APIs in React.
|
|
145
154
|
- **recommended-legacy**\
|
|
146
155
|
Enable rules that are recommended by ESLint React.\
|
|
147
|
-
_This preset includes the `core-legacy`
|
|
156
|
+
_This preset includes the `core-legacy`, `dom-legacy`, and `web-api-legacy` presets._
|
|
148
157
|
- **recommended-type-checked-legacy**\
|
|
149
158
|
Enable rules that are recommended by ESLint React with additional rules that require type information.\
|
|
150
159
|
_This preset includes the `recommended-legacy` preset._
|
|
151
|
-
- **dom-legacy**\
|
|
152
|
-
Enable rules that are specific to React DOM.
|
|
153
160
|
- **disable-dom-legacy**\
|
|
154
161
|
Disable rules that are specific to React DOM.
|
|
162
|
+
- **disable-web-api-legacy**\
|
|
163
|
+
Disable rules for interacting with Web APIs in React.
|
|
155
164
|
- **disable-type-checked-legacy**\
|
|
156
165
|
Disable rules that require type information.
|
|
157
166
|
- **off-legacy**\
|