@eslint-react/eslint-plugin 1.11.1-next.0 → 1.12.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 +1 -1
- package/dist/index.d.mts +16 -0
- package/dist/index.d.ts +16 -0
- package/dist/index.js +9 -2
- package/dist/index.mjs +9 -2
- package/package.json +10 -10
package/README.md
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
[](https://bundlephobia.com/package/@eslint-react/eslint-plugin)
|
|
7
7
|
[](https://npmjs.com/package/@eslint-react/eslint-plugin)
|
|
8
8
|
|
|
9
|
-
A series of ESLint plugins for
|
|
9
|
+
A series of composable ESLint plugins for libraries and frameworks that use React as a UI runtime.
|
|
10
10
|
|
|
11
11
|
## Features
|
|
12
12
|
|
package/dist/index.d.mts
CHANGED
|
@@ -226,6 +226,10 @@ declare const _default: {
|
|
|
226
226
|
readonly "@eslint-react/web-api": typeof reactWebApi;
|
|
227
227
|
};
|
|
228
228
|
readonly rules: {
|
|
229
|
+
readonly "@eslint-react/hooks-extra/ensure-custom-hooks-using-other-hooks": "warn";
|
|
230
|
+
readonly "@eslint-react/hooks-extra/no-direct-set-state-in-use-effect": "warn";
|
|
231
|
+
readonly "@eslint-react/hooks-extra/no-direct-set-state-in-use-layout-effect": "warn";
|
|
232
|
+
readonly "@eslint-react/hooks-extra/prefer-use-state-lazy-initialization": "warn";
|
|
229
233
|
readonly "@eslint-react/web-api/no-leaked-event-listener": "warn";
|
|
230
234
|
readonly "@eslint-react/web-api/no-leaked-interval": "warn";
|
|
231
235
|
readonly "@eslint-react/web-api/no-leaked-timeout": "warn";
|
|
@@ -287,6 +291,10 @@ declare const _default: {
|
|
|
287
291
|
readonly "recommended-legacy": {
|
|
288
292
|
readonly plugins: readonly ["@eslint-react"];
|
|
289
293
|
readonly rules: {
|
|
294
|
+
readonly "@eslint-react/hooks-extra/ensure-custom-hooks-using-other-hooks": "warn";
|
|
295
|
+
readonly "@eslint-react/hooks-extra/no-direct-set-state-in-use-effect": "warn";
|
|
296
|
+
readonly "@eslint-react/hooks-extra/no-direct-set-state-in-use-layout-effect": "warn";
|
|
297
|
+
readonly "@eslint-react/hooks-extra/prefer-use-state-lazy-initialization": "warn";
|
|
290
298
|
readonly "@eslint-react/web-api/no-leaked-event-listener": "warn";
|
|
291
299
|
readonly "@eslint-react/web-api/no-leaked-interval": "warn";
|
|
292
300
|
readonly "@eslint-react/web-api/no-leaked-timeout": "warn";
|
|
@@ -356,6 +364,10 @@ declare const _default: {
|
|
|
356
364
|
};
|
|
357
365
|
readonly rules: {
|
|
358
366
|
readonly "@eslint-react/no-leaked-conditional-rendering": "warn";
|
|
367
|
+
readonly "@eslint-react/hooks-extra/ensure-custom-hooks-using-other-hooks": "warn";
|
|
368
|
+
readonly "@eslint-react/hooks-extra/no-direct-set-state-in-use-effect": "warn";
|
|
369
|
+
readonly "@eslint-react/hooks-extra/no-direct-set-state-in-use-layout-effect": "warn";
|
|
370
|
+
readonly "@eslint-react/hooks-extra/prefer-use-state-lazy-initialization": "warn";
|
|
359
371
|
readonly "@eslint-react/web-api/no-leaked-event-listener": "warn";
|
|
360
372
|
readonly "@eslint-react/web-api/no-leaked-interval": "warn";
|
|
361
373
|
readonly "@eslint-react/web-api/no-leaked-timeout": "warn";
|
|
@@ -418,6 +430,10 @@ declare const _default: {
|
|
|
418
430
|
readonly plugins: readonly ["@eslint-react"];
|
|
419
431
|
readonly rules: {
|
|
420
432
|
readonly "@eslint-react/no-leaked-conditional-rendering": "warn";
|
|
433
|
+
readonly "@eslint-react/hooks-extra/ensure-custom-hooks-using-other-hooks": "warn";
|
|
434
|
+
readonly "@eslint-react/hooks-extra/no-direct-set-state-in-use-effect": "warn";
|
|
435
|
+
readonly "@eslint-react/hooks-extra/no-direct-set-state-in-use-layout-effect": "warn";
|
|
436
|
+
readonly "@eslint-react/hooks-extra/prefer-use-state-lazy-initialization": "warn";
|
|
421
437
|
readonly "@eslint-react/web-api/no-leaked-event-listener": "warn";
|
|
422
438
|
readonly "@eslint-react/web-api/no-leaked-interval": "warn";
|
|
423
439
|
readonly "@eslint-react/web-api/no-leaked-timeout": "warn";
|
package/dist/index.d.ts
CHANGED
|
@@ -226,6 +226,10 @@ declare const _default: {
|
|
|
226
226
|
readonly "@eslint-react/web-api": typeof reactWebApi;
|
|
227
227
|
};
|
|
228
228
|
readonly rules: {
|
|
229
|
+
readonly "@eslint-react/hooks-extra/ensure-custom-hooks-using-other-hooks": "warn";
|
|
230
|
+
readonly "@eslint-react/hooks-extra/no-direct-set-state-in-use-effect": "warn";
|
|
231
|
+
readonly "@eslint-react/hooks-extra/no-direct-set-state-in-use-layout-effect": "warn";
|
|
232
|
+
readonly "@eslint-react/hooks-extra/prefer-use-state-lazy-initialization": "warn";
|
|
229
233
|
readonly "@eslint-react/web-api/no-leaked-event-listener": "warn";
|
|
230
234
|
readonly "@eslint-react/web-api/no-leaked-interval": "warn";
|
|
231
235
|
readonly "@eslint-react/web-api/no-leaked-timeout": "warn";
|
|
@@ -287,6 +291,10 @@ declare const _default: {
|
|
|
287
291
|
readonly "recommended-legacy": {
|
|
288
292
|
readonly plugins: readonly ["@eslint-react"];
|
|
289
293
|
readonly rules: {
|
|
294
|
+
readonly "@eslint-react/hooks-extra/ensure-custom-hooks-using-other-hooks": "warn";
|
|
295
|
+
readonly "@eslint-react/hooks-extra/no-direct-set-state-in-use-effect": "warn";
|
|
296
|
+
readonly "@eslint-react/hooks-extra/no-direct-set-state-in-use-layout-effect": "warn";
|
|
297
|
+
readonly "@eslint-react/hooks-extra/prefer-use-state-lazy-initialization": "warn";
|
|
290
298
|
readonly "@eslint-react/web-api/no-leaked-event-listener": "warn";
|
|
291
299
|
readonly "@eslint-react/web-api/no-leaked-interval": "warn";
|
|
292
300
|
readonly "@eslint-react/web-api/no-leaked-timeout": "warn";
|
|
@@ -356,6 +364,10 @@ declare const _default: {
|
|
|
356
364
|
};
|
|
357
365
|
readonly rules: {
|
|
358
366
|
readonly "@eslint-react/no-leaked-conditional-rendering": "warn";
|
|
367
|
+
readonly "@eslint-react/hooks-extra/ensure-custom-hooks-using-other-hooks": "warn";
|
|
368
|
+
readonly "@eslint-react/hooks-extra/no-direct-set-state-in-use-effect": "warn";
|
|
369
|
+
readonly "@eslint-react/hooks-extra/no-direct-set-state-in-use-layout-effect": "warn";
|
|
370
|
+
readonly "@eslint-react/hooks-extra/prefer-use-state-lazy-initialization": "warn";
|
|
359
371
|
readonly "@eslint-react/web-api/no-leaked-event-listener": "warn";
|
|
360
372
|
readonly "@eslint-react/web-api/no-leaked-interval": "warn";
|
|
361
373
|
readonly "@eslint-react/web-api/no-leaked-timeout": "warn";
|
|
@@ -418,6 +430,10 @@ declare const _default: {
|
|
|
418
430
|
readonly plugins: readonly ["@eslint-react"];
|
|
419
431
|
readonly rules: {
|
|
420
432
|
readonly "@eslint-react/no-leaked-conditional-rendering": "warn";
|
|
433
|
+
readonly "@eslint-react/hooks-extra/ensure-custom-hooks-using-other-hooks": "warn";
|
|
434
|
+
readonly "@eslint-react/hooks-extra/no-direct-set-state-in-use-effect": "warn";
|
|
435
|
+
readonly "@eslint-react/hooks-extra/no-direct-set-state-in-use-layout-effect": "warn";
|
|
436
|
+
readonly "@eslint-react/hooks-extra/prefer-use-state-lazy-initialization": "warn";
|
|
421
437
|
readonly "@eslint-react/web-api/no-leaked-event-listener": "warn";
|
|
422
438
|
readonly "@eslint-react/web-api/no-leaked-interval": "warn";
|
|
423
439
|
readonly "@eslint-react/web-api/no-leaked-timeout": "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.
|
|
41
|
+
var version = "1.12.0";
|
|
42
42
|
function transformKeys(obj, transform) {
|
|
43
43
|
if (tools.typeOf(obj) !== "object") return obj;
|
|
44
44
|
const res = {};
|
|
@@ -194,10 +194,17 @@ var webApiPreset = {
|
|
|
194
194
|
"web-api/no-leaked-interval": "warn",
|
|
195
195
|
"web-api/no-leaked-timeout": "warn"
|
|
196
196
|
};
|
|
197
|
+
var hooksExtraPreset = {
|
|
198
|
+
"hooks-extra/ensure-custom-hooks-using-other-hooks": "warn",
|
|
199
|
+
"hooks-extra/no-direct-set-state-in-use-effect": "warn",
|
|
200
|
+
"hooks-extra/no-direct-set-state-in-use-layout-effect": "warn",
|
|
201
|
+
"hooks-extra/prefer-use-state-lazy-initialization": "warn"
|
|
202
|
+
};
|
|
197
203
|
var recommendedPreset = {
|
|
198
204
|
...corePreset,
|
|
199
205
|
...domPreset,
|
|
200
|
-
...webApiPreset
|
|
206
|
+
...webApiPreset,
|
|
207
|
+
...hooksExtraPreset
|
|
201
208
|
};
|
|
202
209
|
var recommendedTypeCheckedPreset = {
|
|
203
210
|
...recommendedPreset,
|
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.
|
|
14
|
+
var version = "1.12.0";
|
|
15
15
|
function transformKeys(obj, transform) {
|
|
16
16
|
if (typeOf(obj) !== "object") return obj;
|
|
17
17
|
const res = {};
|
|
@@ -167,10 +167,17 @@ var webApiPreset = {
|
|
|
167
167
|
"web-api/no-leaked-interval": "warn",
|
|
168
168
|
"web-api/no-leaked-timeout": "warn"
|
|
169
169
|
};
|
|
170
|
+
var hooksExtraPreset = {
|
|
171
|
+
"hooks-extra/ensure-custom-hooks-using-other-hooks": "warn",
|
|
172
|
+
"hooks-extra/no-direct-set-state-in-use-effect": "warn",
|
|
173
|
+
"hooks-extra/no-direct-set-state-in-use-layout-effect": "warn",
|
|
174
|
+
"hooks-extra/prefer-use-state-lazy-initialization": "warn"
|
|
175
|
+
};
|
|
170
176
|
var recommendedPreset = {
|
|
171
177
|
...corePreset,
|
|
172
178
|
...domPreset,
|
|
173
|
-
...webApiPreset
|
|
179
|
+
...webApiPreset,
|
|
180
|
+
...hooksExtraPreset
|
|
174
181
|
};
|
|
175
182
|
var recommendedTypeCheckedPreset = {
|
|
176
183
|
...recommendedPreset,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@eslint-react/eslint-plugin",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.12.0",
|
|
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.2.0",
|
|
48
48
|
"@typescript-eslint/types": "^8.2.0",
|
|
49
49
|
"@typescript-eslint/utils": "^8.2.0",
|
|
50
|
-
"@eslint-react/
|
|
51
|
-
"@eslint-react/
|
|
52
|
-
"eslint-
|
|
53
|
-
"eslint-plugin-react-
|
|
54
|
-
"eslint-plugin-react-dom": "1.
|
|
55
|
-
"
|
|
56
|
-
"eslint-plugin-react-
|
|
57
|
-
"eslint-plugin-react-web-api": "1.
|
|
58
|
-
"eslint-plugin-react-x": "1.
|
|
50
|
+
"@eslint-react/tools": "1.12.0",
|
|
51
|
+
"@eslint-react/shared": "1.12.0",
|
|
52
|
+
"@eslint-react/types": "1.12.0",
|
|
53
|
+
"eslint-plugin-react-debug": "1.12.0",
|
|
54
|
+
"eslint-plugin-react-dom": "1.12.0",
|
|
55
|
+
"eslint-plugin-react-naming-convention": "1.12.0",
|
|
56
|
+
"eslint-plugin-react-hooks-extra": "1.12.0",
|
|
57
|
+
"eslint-plugin-react-web-api": "1.12.0",
|
|
58
|
+
"eslint-plugin-react-x": "1.12.0"
|
|
59
59
|
},
|
|
60
60
|
"devDependencies": {
|
|
61
61
|
"tsup": "^8.2.4"
|