@eslint-react/eslint-plugin 1.11.0-next.2 → 1.11.0-next.4

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 CHANGED
@@ -6,7 +6,7 @@
6
6
  [![Size](https://img.shields.io/bundlephobia/minzip/@eslint-react/eslint-plugin?label=gzip&style=flat&colorA=000000&colorB=000000)](https://bundlephobia.com/package/@eslint-react/eslint-plugin)
7
7
  [![Downloads](https://img.shields.io/npm/dt/@eslint-react/eslint-plugin.svg?style=flat&colorA=000000&colorB=000000)](https://npmjs.com/package/@eslint-react/eslint-plugin)
8
8
 
9
- A series of composable ESLint rules rewritten from scratch for libraries and frameworks that use React as a UI runtime.
9
+ A series of composable ESLint plugins for building robust and reliable React applications across all platforms.
10
10
 
11
11
  ## Features
12
12
 
@@ -24,7 +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
+ - [`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.
28
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.
29
29
  - [`eslint-plugin-react-naming-convention`](https://github.com/Rel1cx/eslint-react/tree/main/packages/plugins/eslint-plugin-react-naming-convention) - Naming convention rules.
30
30
 
@@ -124,21 +124,13 @@ Add the plugin to your `.eslintrc.json`:
124
124
  - **dom**\
125
125
  Enable rules that are specific to React DOM.
126
126
  - **web-api**\
127
- Enable rules for interacting with Web APIs in React.
127
+ Enable rules for interacting with Web APIs.
128
128
  - **recommended**\
129
129
  Enable rules that are recommended by ESLint React.\
130
130
  _This preset includes the `core`, `dom`, and `web-api` presets._
131
131
  - **recommended-type-checked**\
132
132
  Enable rules that are recommended by ESLint React with additional rules that require type information.\
133
133
  _This preset includes the `recommended` preset._
134
- - **disable-dom**\
135
- Disable rules that are specific to React DOM.
136
- - **disable-web-api**\
137
- Disable rules for interacting with Web APIs in React.
138
- - **disable-type-checked**\
139
- Disable rules that require type information.
140
- - **off**\
141
- Disable all rules in this plugin except for debug rules.
142
134
 
143
135
  ### Legacy Config
144
136
 
@@ -150,21 +142,13 @@ Add the plugin to your `.eslintrc.json`:
150
142
  - **dom-legacy**\
151
143
  Enable rules that are specific to React DOM.
152
144
  - **web-api-legacy**\
153
- Enable rules for interacting with Web APIs in React.
145
+ Enable rules for interacting with Web APIs.
154
146
  - **recommended-legacy**\
155
147
  Enable rules that are recommended by ESLint React.\
156
148
  _This preset includes the `core-legacy`, `dom-legacy`, and `web-api-legacy` presets._
157
149
  - **recommended-type-checked-legacy**\
158
150
  Enable rules that are recommended by ESLint React with additional rules that require type information.\
159
151
  _This preset includes the `recommended-legacy` preset._
160
- - **disable-dom-legacy**\
161
- Disable rules that are specific to React DOM.
162
- - **disable-web-api-legacy**\
163
- Disable rules for interacting with Web APIs in React.
164
- - **disable-type-checked-legacy**\
165
- Disable rules that require type information.
166
- - **off-legacy**\
167
- Disable all rules in this plugin except for debug rules.
168
152
 
169
153
  </details>
170
154
 
@@ -215,21 +199,6 @@ Thank you to everyone contributing to ESLint React!
215
199
  </picture>
216
200
  </a>
217
201
 
218
- <!-- Made with [OSS Insight](https://ossinsight.io/) -->
219
-
220
- ### All Contributors
221
-
222
- <!-- Copy-paste in your Readme.md file -->
223
-
224
- <a href="https://next.ossinsight.io/widgets/official/compose-contributors?repo_id=680315614&limit=50" target="_blank" style="display: block" align="center">
225
- <picture>
226
- <source media="(prefers-color-scheme: dark)" srcset="https://next.ossinsight.io/widgets/official/compose-contributors/thumbnail.png?repo_id=680315614&limit=50&image_size=auto&color_scheme=dark" width="655" height="auto">
227
- <img alt="Contributors of Rel1cx/eslint-react" src="https://next.ossinsight.io/widgets/official/compose-contributors/thumbnail.png?repo_id=680315614&limit=50&image_size=auto&color_scheme=light" width="655" height="auto">
228
- </picture>
229
- </a>
230
-
231
- <!-- Made with [OSS Insight](https://ossinsight.io/) -->
232
-
233
202
  ## License
234
203
 
235
204
  This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.
package/dist/index.d.mts CHANGED
@@ -226,7 +226,7 @@ declare const _default: {
226
226
  readonly "@eslint-react/web-api": typeof reactWebApi;
227
227
  };
228
228
  readonly rules: {
229
- readonly "@eslint-react/web-api/no-leaked-event-listener": "error";
229
+ readonly "@eslint-react/web-api/no-leaked-event-listener": "warn";
230
230
  readonly "@eslint-react/dom/no-children-in-void-dom-elements": "warn";
231
231
  readonly "@eslint-react/dom/no-dangerously-set-innerhtml": "warn";
232
232
  readonly "@eslint-react/dom/no-dangerously-set-innerhtml-with-children": "error";
@@ -285,7 +285,7 @@ declare const _default: {
285
285
  readonly "recommended-legacy": {
286
286
  readonly plugins: readonly ["@eslint-react"];
287
287
  readonly rules: {
288
- readonly "@eslint-react/web-api/no-leaked-event-listener": "error";
288
+ readonly "@eslint-react/web-api/no-leaked-event-listener": "warn";
289
289
  readonly "@eslint-react/dom/no-children-in-void-dom-elements": "warn";
290
290
  readonly "@eslint-react/dom/no-dangerously-set-innerhtml": "warn";
291
291
  readonly "@eslint-react/dom/no-dangerously-set-innerhtml-with-children": "error";
@@ -352,7 +352,7 @@ declare const _default: {
352
352
  };
353
353
  readonly rules: {
354
354
  readonly "@eslint-react/no-leaked-conditional-rendering": "warn";
355
- readonly "@eslint-react/web-api/no-leaked-event-listener": "error";
355
+ readonly "@eslint-react/web-api/no-leaked-event-listener": "warn";
356
356
  readonly "@eslint-react/dom/no-children-in-void-dom-elements": "warn";
357
357
  readonly "@eslint-react/dom/no-dangerously-set-innerhtml": "warn";
358
358
  readonly "@eslint-react/dom/no-dangerously-set-innerhtml-with-children": "error";
@@ -412,7 +412,7 @@ declare const _default: {
412
412
  readonly plugins: readonly ["@eslint-react"];
413
413
  readonly rules: {
414
414
  readonly "@eslint-react/no-leaked-conditional-rendering": "warn";
415
- readonly "@eslint-react/web-api/no-leaked-event-listener": "error";
415
+ readonly "@eslint-react/web-api/no-leaked-event-listener": "warn";
416
416
  readonly "@eslint-react/dom/no-children-in-void-dom-elements": "warn";
417
417
  readonly "@eslint-react/dom/no-dangerously-set-innerhtml": "warn";
418
418
  readonly "@eslint-react/dom/no-dangerously-set-innerhtml-with-children": "error";
@@ -669,7 +669,7 @@ declare const _default: {
669
669
  readonly "@eslint-react/dom/no-script-url": "warn";
670
670
  readonly "@eslint-react/dom/no-unsafe-iframe-sandbox": "warn";
671
671
  readonly "@eslint-react/dom/no-unsafe-target-blank": "warn";
672
- readonly "@eslint-react/web-api/no-leaked-event-listener": "error";
672
+ readonly "@eslint-react/web-api/no-leaked-event-listener": "warn";
673
673
  readonly "@eslint-react/hooks-extra/ensure-custom-hooks-using-other-hooks": "warn";
674
674
  readonly "@eslint-react/hooks-extra/ensure-use-callback-has-non-empty-deps": "warn";
675
675
  readonly "@eslint-react/hooks-extra/ensure-use-memo-has-non-empty-deps": "warn";
@@ -749,7 +749,7 @@ declare const _default: {
749
749
  readonly "@eslint-react/dom/no-script-url": "warn";
750
750
  readonly "@eslint-react/dom/no-unsafe-iframe-sandbox": "warn";
751
751
  readonly "@eslint-react/dom/no-unsafe-target-blank": "warn";
752
- readonly "@eslint-react/web-api/no-leaked-event-listener": "error";
752
+ readonly "@eslint-react/web-api/no-leaked-event-listener": "warn";
753
753
  readonly "@eslint-react/hooks-extra/ensure-custom-hooks-using-other-hooks": "warn";
754
754
  readonly "@eslint-react/hooks-extra/ensure-use-callback-has-non-empty-deps": "warn";
755
755
  readonly "@eslint-react/hooks-extra/ensure-use-memo-has-non-empty-deps": "warn";
package/dist/index.d.ts CHANGED
@@ -226,7 +226,7 @@ declare const _default: {
226
226
  readonly "@eslint-react/web-api": typeof reactWebApi;
227
227
  };
228
228
  readonly rules: {
229
- readonly "@eslint-react/web-api/no-leaked-event-listener": "error";
229
+ readonly "@eslint-react/web-api/no-leaked-event-listener": "warn";
230
230
  readonly "@eslint-react/dom/no-children-in-void-dom-elements": "warn";
231
231
  readonly "@eslint-react/dom/no-dangerously-set-innerhtml": "warn";
232
232
  readonly "@eslint-react/dom/no-dangerously-set-innerhtml-with-children": "error";
@@ -285,7 +285,7 @@ declare const _default: {
285
285
  readonly "recommended-legacy": {
286
286
  readonly plugins: readonly ["@eslint-react"];
287
287
  readonly rules: {
288
- readonly "@eslint-react/web-api/no-leaked-event-listener": "error";
288
+ readonly "@eslint-react/web-api/no-leaked-event-listener": "warn";
289
289
  readonly "@eslint-react/dom/no-children-in-void-dom-elements": "warn";
290
290
  readonly "@eslint-react/dom/no-dangerously-set-innerhtml": "warn";
291
291
  readonly "@eslint-react/dom/no-dangerously-set-innerhtml-with-children": "error";
@@ -352,7 +352,7 @@ declare const _default: {
352
352
  };
353
353
  readonly rules: {
354
354
  readonly "@eslint-react/no-leaked-conditional-rendering": "warn";
355
- readonly "@eslint-react/web-api/no-leaked-event-listener": "error";
355
+ readonly "@eslint-react/web-api/no-leaked-event-listener": "warn";
356
356
  readonly "@eslint-react/dom/no-children-in-void-dom-elements": "warn";
357
357
  readonly "@eslint-react/dom/no-dangerously-set-innerhtml": "warn";
358
358
  readonly "@eslint-react/dom/no-dangerously-set-innerhtml-with-children": "error";
@@ -412,7 +412,7 @@ declare const _default: {
412
412
  readonly plugins: readonly ["@eslint-react"];
413
413
  readonly rules: {
414
414
  readonly "@eslint-react/no-leaked-conditional-rendering": "warn";
415
- readonly "@eslint-react/web-api/no-leaked-event-listener": "error";
415
+ readonly "@eslint-react/web-api/no-leaked-event-listener": "warn";
416
416
  readonly "@eslint-react/dom/no-children-in-void-dom-elements": "warn";
417
417
  readonly "@eslint-react/dom/no-dangerously-set-innerhtml": "warn";
418
418
  readonly "@eslint-react/dom/no-dangerously-set-innerhtml-with-children": "error";
@@ -669,7 +669,7 @@ declare const _default: {
669
669
  readonly "@eslint-react/dom/no-script-url": "warn";
670
670
  readonly "@eslint-react/dom/no-unsafe-iframe-sandbox": "warn";
671
671
  readonly "@eslint-react/dom/no-unsafe-target-blank": "warn";
672
- readonly "@eslint-react/web-api/no-leaked-event-listener": "error";
672
+ readonly "@eslint-react/web-api/no-leaked-event-listener": "warn";
673
673
  readonly "@eslint-react/hooks-extra/ensure-custom-hooks-using-other-hooks": "warn";
674
674
  readonly "@eslint-react/hooks-extra/ensure-use-callback-has-non-empty-deps": "warn";
675
675
  readonly "@eslint-react/hooks-extra/ensure-use-memo-has-non-empty-deps": "warn";
@@ -749,7 +749,7 @@ declare const _default: {
749
749
  readonly "@eslint-react/dom/no-script-url": "warn";
750
750
  readonly "@eslint-react/dom/no-unsafe-iframe-sandbox": "warn";
751
751
  readonly "@eslint-react/dom/no-unsafe-target-blank": "warn";
752
- readonly "@eslint-react/web-api/no-leaked-event-listener": "error";
752
+ readonly "@eslint-react/web-api/no-leaked-event-listener": "warn";
753
753
  readonly "@eslint-react/hooks-extra/ensure-custom-hooks-using-other-hooks": "warn";
754
754
  readonly "@eslint-react/hooks-extra/ensure-use-callback-has-non-empty-deps": "warn";
755
755
  readonly "@eslint-react/hooks-extra/ensure-use-memo-has-non-empty-deps": "warn";
package/dist/index.js CHANGED
@@ -38,7 +38,7 @@ var react__namespace = /*#__PURE__*/_interopNamespace(react);
38
38
 
39
39
  // package.json
40
40
  var name = "@eslint-react/eslint-plugin";
41
- var version = "1.11.0-next.2";
41
+ var version = "1.11.0-next.4";
42
42
  function transformKeys(obj, transform) {
43
43
  if (tools.typeOf(obj) !== "object") return obj;
44
44
  const res = {};
@@ -114,7 +114,7 @@ var allPreset = {
114
114
  "dom/no-unsafe-iframe-sandbox": "warn",
115
115
  "dom/no-unsafe-target-blank": "warn",
116
116
  // Part: Web API
117
- "web-api/no-leaked-event-listener": "error",
117
+ "web-api/no-leaked-event-listener": "warn",
118
118
  // Part: Hooks Extra
119
119
  "hooks-extra/ensure-custom-hooks-using-other-hooks": "warn",
120
120
  "hooks-extra/ensure-use-callback-has-non-empty-deps": "warn",
@@ -188,24 +188,7 @@ var domPreset = {
188
188
  "dom/no-unsafe-target-blank": "warn"
189
189
  };
190
190
  var webApiPreset = {
191
- "web-api/no-leaked-event-listener": "error"
192
- // "web-api/no-leaked-timeout": "warn",
193
- // "web-api/no-leaked-interval": "warn",
194
- // "web-api/no-leaked-resize-observer": "warn",
195
- // "web-api/no-leaked-intersection-observer": "warn",
196
- // "web-api/no-leaked-mutation-observer": "warn",
197
- // "web-api/no-leaked-performance-observer": "warn",
198
- // "web-api/no-leaked-websocket": "warn",
199
- // "web-api/no-leaked-broadcast-channel": "warn",
200
- // "web-api/no-leaked-geolocation": "warn",
201
- // "web-api/no-leaked-absolute-orientation-sensor": "warn",
202
- // "web-api/no-leaked-relative-accelerometer": "warn",
203
- // "web-api/no-leaked-ambient-light-sensor": "warn",
204
- // "web-api/no-leaked-gravity-sensor": "warn",
205
- // "web-api/no-leaked-gyroscope": "warn",
206
- // "web-api/no-leaked-linear-acceleration-sensor": "warn",
207
- // "web-api/no-leaked-magnetometer": "warn",
208
- // "web-api/no-leaked-orientation-sensor": "warn",
191
+ "web-api/no-leaked-event-listener": "warn"
209
192
  };
210
193
  var recommendedPreset = {
211
194
  ...corePreset,
package/dist/index.mjs CHANGED
@@ -11,7 +11,7 @@ import * as react from 'eslint-plugin-react-x';
11
11
 
12
12
  // package.json
13
13
  var name = "@eslint-react/eslint-plugin";
14
- var version = "1.11.0-next.2";
14
+ var version = "1.11.0-next.4";
15
15
  function transformKeys(obj, transform) {
16
16
  if (typeOf(obj) !== "object") return obj;
17
17
  const res = {};
@@ -87,7 +87,7 @@ var allPreset = {
87
87
  "dom/no-unsafe-iframe-sandbox": "warn",
88
88
  "dom/no-unsafe-target-blank": "warn",
89
89
  // Part: Web API
90
- "web-api/no-leaked-event-listener": "error",
90
+ "web-api/no-leaked-event-listener": "warn",
91
91
  // Part: Hooks Extra
92
92
  "hooks-extra/ensure-custom-hooks-using-other-hooks": "warn",
93
93
  "hooks-extra/ensure-use-callback-has-non-empty-deps": "warn",
@@ -161,24 +161,7 @@ var domPreset = {
161
161
  "dom/no-unsafe-target-blank": "warn"
162
162
  };
163
163
  var webApiPreset = {
164
- "web-api/no-leaked-event-listener": "error"
165
- // "web-api/no-leaked-timeout": "warn",
166
- // "web-api/no-leaked-interval": "warn",
167
- // "web-api/no-leaked-resize-observer": "warn",
168
- // "web-api/no-leaked-intersection-observer": "warn",
169
- // "web-api/no-leaked-mutation-observer": "warn",
170
- // "web-api/no-leaked-performance-observer": "warn",
171
- // "web-api/no-leaked-websocket": "warn",
172
- // "web-api/no-leaked-broadcast-channel": "warn",
173
- // "web-api/no-leaked-geolocation": "warn",
174
- // "web-api/no-leaked-absolute-orientation-sensor": "warn",
175
- // "web-api/no-leaked-relative-accelerometer": "warn",
176
- // "web-api/no-leaked-ambient-light-sensor": "warn",
177
- // "web-api/no-leaked-gravity-sensor": "warn",
178
- // "web-api/no-leaked-gyroscope": "warn",
179
- // "web-api/no-leaked-linear-acceleration-sensor": "warn",
180
- // "web-api/no-leaked-magnetometer": "warn",
181
- // "web-api/no-leaked-orientation-sensor": "warn",
164
+ "web-api/no-leaked-event-listener": "warn"
182
165
  };
183
166
  var recommendedPreset = {
184
167
  ...corePreset,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eslint-react/eslint-plugin",
3
- "version": "1.11.0-next.2",
3
+ "version": "1.11.0-next.4",
4
4
  "description": "The main ESLint plugin of ESLint React. Contains all the rules and presets of ESLint React.",
5
5
  "keywords": [
6
6
  "eslint",
@@ -47,15 +47,15 @@
47
47
  "@typescript-eslint/type-utils": "^8.1.0",
48
48
  "@typescript-eslint/types": "^8.1.0",
49
49
  "@typescript-eslint/utils": "^8.1.0",
50
- "@eslint-react/shared": "1.11.0-next.2",
51
- "eslint-plugin-react-debug": "1.11.0-next.2",
52
- "eslint-plugin-react-dom": "1.11.0-next.2",
53
- "@eslint-react/types": "1.11.0-next.2",
54
- "eslint-plugin-react-hooks-extra": "1.11.0-next.2",
55
- "eslint-plugin-react-web-api": "1.11.0-next.2",
56
- "@eslint-react/tools": "1.11.0-next.2",
57
- "eslint-plugin-react-x": "1.11.0-next.2",
58
- "eslint-plugin-react-naming-convention": "1.11.0-next.2"
50
+ "@eslint-react/shared": "1.11.0-next.4",
51
+ "@eslint-react/types": "1.11.0-next.4",
52
+ "eslint-plugin-react-dom": "1.11.0-next.4",
53
+ "eslint-plugin-react-hooks-extra": "1.11.0-next.4",
54
+ "eslint-plugin-react-debug": "1.11.0-next.4",
55
+ "eslint-plugin-react-web-api": "1.11.0-next.4",
56
+ "eslint-plugin-react-x": "1.11.0-next.4",
57
+ "@eslint-react/tools": "1.11.0-next.4",
58
+ "eslint-plugin-react-naming-convention": "1.11.0-next.4"
59
59
  },
60
60
  "devDependencies": {
61
61
  "tsup": "^8.2.4"