eslint-plugin-react-hooks-extra 1.22.1-beta.2 → 1.22.1-beta.3
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 +3 -3
- package/dist/index.mjs +3 -3
- package/package.json +8 -8
package/dist/index.js
CHANGED
|
@@ -31,7 +31,7 @@ var VAR5__namespace = /*#__PURE__*/_interopNamespace(VAR5);
|
|
|
31
31
|
|
|
32
32
|
// package.json
|
|
33
33
|
var name = "eslint-plugin-react-hooks-extra";
|
|
34
|
-
var version = "1.22.1-beta.
|
|
34
|
+
var version = "1.22.1-beta.3";
|
|
35
35
|
var createRule = shared.createRuleForPlugin("hooks-extra");
|
|
36
36
|
function isFromHookCall(name2, context, settings, predicate = eff.F.constTrue) {
|
|
37
37
|
const hookAlias = settings.additionalHooks?.[name2] ?? [];
|
|
@@ -652,11 +652,11 @@ var no_useless_custom_hooks_default = createRule({
|
|
|
652
652
|
meta: {
|
|
653
653
|
type: "problem",
|
|
654
654
|
docs: {
|
|
655
|
-
description: "enforce custom
|
|
655
|
+
description: "enforce custom Hooks to use at least one other hook inside",
|
|
656
656
|
[Symbol.for("rule_features")]: RULE_FEATURES5
|
|
657
657
|
},
|
|
658
658
|
messages: {
|
|
659
|
-
noUselessCustomHooks: "A custom
|
|
659
|
+
noUselessCustomHooks: "A custom Hook '{{name}}' should use at least one other hook."
|
|
660
660
|
},
|
|
661
661
|
schema: []
|
|
662
662
|
},
|
package/dist/index.mjs
CHANGED
|
@@ -8,7 +8,7 @@ import { match, isMatching } from 'ts-pattern';
|
|
|
8
8
|
|
|
9
9
|
// package.json
|
|
10
10
|
var name = "eslint-plugin-react-hooks-extra";
|
|
11
|
-
var version = "1.22.1-beta.
|
|
11
|
+
var version = "1.22.1-beta.3";
|
|
12
12
|
var createRule = createRuleForPlugin("hooks-extra");
|
|
13
13
|
function isFromHookCall(name2, context, settings, predicate = F.constTrue) {
|
|
14
14
|
const hookAlias = settings.additionalHooks?.[name2] ?? [];
|
|
@@ -629,11 +629,11 @@ var no_useless_custom_hooks_default = createRule({
|
|
|
629
629
|
meta: {
|
|
630
630
|
type: "problem",
|
|
631
631
|
docs: {
|
|
632
|
-
description: "enforce custom
|
|
632
|
+
description: "enforce custom Hooks to use at least one other hook inside",
|
|
633
633
|
[Symbol.for("rule_features")]: RULE_FEATURES5
|
|
634
634
|
},
|
|
635
635
|
messages: {
|
|
636
|
-
noUselessCustomHooks: "A custom
|
|
636
|
+
noUselessCustomHooks: "A custom Hook '{{name}}' should use at least one other hook."
|
|
637
637
|
},
|
|
638
638
|
schema: []
|
|
639
639
|
},
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "eslint-plugin-react-hooks-extra",
|
|
3
|
-
"version": "1.22.1-beta.
|
|
3
|
+
"version": "1.22.1-beta.3",
|
|
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.18.1",
|
|
51
51
|
"string-ts": "^2.2.0",
|
|
52
52
|
"ts-pattern": "^5.6.0",
|
|
53
|
-
"@eslint-react/ast": "1.22.1-beta.
|
|
54
|
-
"@eslint-react/eff": "1.22.1-beta.
|
|
55
|
-
"@eslint-react/
|
|
56
|
-
"@eslint-react/
|
|
57
|
-
"@eslint-react/
|
|
58
|
-
"@eslint-react/
|
|
59
|
-
"@eslint-react/var": "1.22.1-beta.
|
|
53
|
+
"@eslint-react/ast": "1.22.1-beta.3",
|
|
54
|
+
"@eslint-react/eff": "1.22.1-beta.3",
|
|
55
|
+
"@eslint-react/core": "1.22.1-beta.3",
|
|
56
|
+
"@eslint-react/shared": "1.22.1-beta.3",
|
|
57
|
+
"@eslint-react/jsx": "1.22.1-beta.3",
|
|
58
|
+
"@eslint-react/types": "1.22.1-beta.3",
|
|
59
|
+
"@eslint-react/var": "1.22.1-beta.3"
|
|
60
60
|
},
|
|
61
61
|
"devDependencies": {
|
|
62
62
|
"@types/react": "^19.0.2",
|