eslint-plugin-react-hooks-extra 1.38.0-beta.5 → 1.38.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/dist/index.js +6 -16
- package/dist/index.mjs +6 -16
- package/package.json +8 -8
package/dist/index.js
CHANGED
|
@@ -50,7 +50,7 @@ var rules = {
|
|
|
50
50
|
|
|
51
51
|
// package.json
|
|
52
52
|
var name2 = "eslint-plugin-react-hooks-extra";
|
|
53
|
-
var version = "1.38.0-
|
|
53
|
+
var version = "1.38.0-next.4";
|
|
54
54
|
var createRule = utils.ESLintUtils.RuleCreator(shared.getDocsUrl("hooks-extra"));
|
|
55
55
|
function isFromHookCall(context, name3, settings, predicate = eff.constTrue) {
|
|
56
56
|
const hookAlias = settings.additionalHooks[name3] ?? [];
|
|
@@ -315,9 +315,7 @@ function useNoDirectSetStateInUseEffect(context, options) {
|
|
|
315
315
|
|
|
316
316
|
// src/rules/no-direct-set-state-in-use-effect.ts
|
|
317
317
|
var RULE_NAME = "no-direct-set-state-in-use-effect";
|
|
318
|
-
var RULE_FEATURES = [
|
|
319
|
-
"EXP"
|
|
320
|
-
];
|
|
318
|
+
var RULE_FEATURES = [];
|
|
321
319
|
var no_direct_set_state_in_use_effect_default = createRule({
|
|
322
320
|
meta: {
|
|
323
321
|
type: "problem",
|
|
@@ -346,9 +344,7 @@ function create(context) {
|
|
|
346
344
|
|
|
347
345
|
// src/rules/no-direct-set-state-in-use-layout-effect.ts
|
|
348
346
|
var RULE_NAME2 = "no-direct-set-state-in-use-layout-effect";
|
|
349
|
-
var RULE_FEATURES2 = [
|
|
350
|
-
"EXP"
|
|
351
|
-
];
|
|
347
|
+
var RULE_FEATURES2 = [];
|
|
352
348
|
var no_direct_set_state_in_use_layout_effect_default = createRule({
|
|
353
349
|
meta: {
|
|
354
350
|
type: "problem",
|
|
@@ -375,9 +371,7 @@ function create2(context) {
|
|
|
375
371
|
});
|
|
376
372
|
}
|
|
377
373
|
var RULE_NAME3 = "no-unnecessary-use-callback";
|
|
378
|
-
var RULE_FEATURES3 = [
|
|
379
|
-
"EXP"
|
|
380
|
-
];
|
|
374
|
+
var RULE_FEATURES3 = [];
|
|
381
375
|
var no_unnecessary_use_callback_default = createRule({
|
|
382
376
|
meta: {
|
|
383
377
|
type: "problem",
|
|
@@ -453,9 +447,7 @@ function create3(context) {
|
|
|
453
447
|
};
|
|
454
448
|
}
|
|
455
449
|
var RULE_NAME4 = "no-unnecessary-use-memo";
|
|
456
|
-
var RULE_FEATURES4 = [
|
|
457
|
-
"EXP"
|
|
458
|
-
];
|
|
450
|
+
var RULE_FEATURES4 = [];
|
|
459
451
|
var no_unnecessary_use_memo_default = createRule({
|
|
460
452
|
meta: {
|
|
461
453
|
type: "problem",
|
|
@@ -583,9 +575,7 @@ function create5(context) {
|
|
|
583
575
|
};
|
|
584
576
|
}
|
|
585
577
|
var RULE_NAME6 = "prefer-use-state-lazy-initialization";
|
|
586
|
-
var RULE_FEATURES6 = [
|
|
587
|
-
"EXP"
|
|
588
|
-
];
|
|
578
|
+
var RULE_FEATURES6 = [];
|
|
589
579
|
var ALLOW_LIST = [
|
|
590
580
|
"Boolean",
|
|
591
581
|
"String",
|
package/dist/index.mjs
CHANGED
|
@@ -27,7 +27,7 @@ var rules = {
|
|
|
27
27
|
|
|
28
28
|
// package.json
|
|
29
29
|
var name2 = "eslint-plugin-react-hooks-extra";
|
|
30
|
-
var version = "1.38.0-
|
|
30
|
+
var version = "1.38.0-next.4";
|
|
31
31
|
var createRule = ESLintUtils.RuleCreator(getDocsUrl("hooks-extra"));
|
|
32
32
|
function isFromHookCall(context, name3, settings, predicate = constTrue) {
|
|
33
33
|
const hookAlias = settings.additionalHooks[name3] ?? [];
|
|
@@ -292,9 +292,7 @@ function useNoDirectSetStateInUseEffect(context, options) {
|
|
|
292
292
|
|
|
293
293
|
// src/rules/no-direct-set-state-in-use-effect.ts
|
|
294
294
|
var RULE_NAME = "no-direct-set-state-in-use-effect";
|
|
295
|
-
var RULE_FEATURES = [
|
|
296
|
-
"EXP"
|
|
297
|
-
];
|
|
295
|
+
var RULE_FEATURES = [];
|
|
298
296
|
var no_direct_set_state_in_use_effect_default = createRule({
|
|
299
297
|
meta: {
|
|
300
298
|
type: "problem",
|
|
@@ -323,9 +321,7 @@ function create(context) {
|
|
|
323
321
|
|
|
324
322
|
// src/rules/no-direct-set-state-in-use-layout-effect.ts
|
|
325
323
|
var RULE_NAME2 = "no-direct-set-state-in-use-layout-effect";
|
|
326
|
-
var RULE_FEATURES2 = [
|
|
327
|
-
"EXP"
|
|
328
|
-
];
|
|
324
|
+
var RULE_FEATURES2 = [];
|
|
329
325
|
var no_direct_set_state_in_use_layout_effect_default = createRule({
|
|
330
326
|
meta: {
|
|
331
327
|
type: "problem",
|
|
@@ -352,9 +348,7 @@ function create2(context) {
|
|
|
352
348
|
});
|
|
353
349
|
}
|
|
354
350
|
var RULE_NAME3 = "no-unnecessary-use-callback";
|
|
355
|
-
var RULE_FEATURES3 = [
|
|
356
|
-
"EXP"
|
|
357
|
-
];
|
|
351
|
+
var RULE_FEATURES3 = [];
|
|
358
352
|
var no_unnecessary_use_callback_default = createRule({
|
|
359
353
|
meta: {
|
|
360
354
|
type: "problem",
|
|
@@ -430,9 +424,7 @@ function create3(context) {
|
|
|
430
424
|
};
|
|
431
425
|
}
|
|
432
426
|
var RULE_NAME4 = "no-unnecessary-use-memo";
|
|
433
|
-
var RULE_FEATURES4 = [
|
|
434
|
-
"EXP"
|
|
435
|
-
];
|
|
427
|
+
var RULE_FEATURES4 = [];
|
|
436
428
|
var no_unnecessary_use_memo_default = createRule({
|
|
437
429
|
meta: {
|
|
438
430
|
type: "problem",
|
|
@@ -560,9 +552,7 @@ function create5(context) {
|
|
|
560
552
|
};
|
|
561
553
|
}
|
|
562
554
|
var RULE_NAME6 = "prefer-use-state-lazy-initialization";
|
|
563
|
-
var RULE_FEATURES6 = [
|
|
564
|
-
"EXP"
|
|
565
|
-
];
|
|
555
|
+
var RULE_FEATURES6 = [];
|
|
566
556
|
var ALLOW_LIST = [
|
|
567
557
|
"Boolean",
|
|
568
558
|
"String",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "eslint-plugin-react-hooks-extra",
|
|
3
|
-
"version": "1.38.0-
|
|
3
|
+
"version": "1.38.0-next.4",
|
|
4
4
|
"description": "ESLint React's ESLint plugin for React Hooks related rules.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"react",
|
|
@@ -50,13 +50,13 @@
|
|
|
50
50
|
"@typescript-eslint/utils": "^8.27.0",
|
|
51
51
|
"string-ts": "^2.2.1",
|
|
52
52
|
"ts-pattern": "^5.6.2",
|
|
53
|
-
"@eslint-react/ast": "1.38.0-
|
|
54
|
-
"@eslint-react/core": "1.38.0-
|
|
55
|
-
"@eslint-react/
|
|
56
|
-
"@eslint-react/
|
|
57
|
-
"@eslint-react/
|
|
58
|
-
"@eslint-react/var": "1.38.0-
|
|
59
|
-
"@eslint-react/
|
|
53
|
+
"@eslint-react/ast": "1.38.0-next.4",
|
|
54
|
+
"@eslint-react/core": "1.38.0-next.4",
|
|
55
|
+
"@eslint-react/eff": "1.38.0-next.4",
|
|
56
|
+
"@eslint-react/jsx": "1.38.0-next.4",
|
|
57
|
+
"@eslint-react/shared": "1.38.0-next.4",
|
|
58
|
+
"@eslint-react/var": "1.38.0-next.4",
|
|
59
|
+
"@eslint-react/kit": "1.38.0-next.4"
|
|
60
60
|
},
|
|
61
61
|
"devDependencies": {
|
|
62
62
|
"@types/react": "^19.0.12",
|