eslint-plugin-react-hooks-extra 1.37.1-beta.4 → 1.37.1-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/dist/index.js +3 -3
- package/dist/index.mjs +3 -3
- package/package.json +7 -7
package/dist/index.js
CHANGED
|
@@ -49,7 +49,7 @@ var rules = {
|
|
|
49
49
|
|
|
50
50
|
// package.json
|
|
51
51
|
var name2 = "eslint-plugin-react-hooks-extra";
|
|
52
|
-
var version = "1.37.1-
|
|
52
|
+
var version = "1.37.1-next.0";
|
|
53
53
|
var createRule = shared.createRuleForPlugin("hooks-extra");
|
|
54
54
|
function isFromHookCall(context, name3, settings, predicate = eff.constTrue) {
|
|
55
55
|
const hookAlias = settings.additionalHooks[name3] ?? [];
|
|
@@ -534,11 +534,11 @@ var no_unnecessary_use_prefix_default = createRule({
|
|
|
534
534
|
meta: {
|
|
535
535
|
type: "problem",
|
|
536
536
|
docs: {
|
|
537
|
-
description: "enforce
|
|
537
|
+
description: "enforce custom Hooks to use at least one other hook inside",
|
|
538
538
|
[Symbol.for("rule_features")]: RULE_FEATURES5
|
|
539
539
|
},
|
|
540
540
|
messages: {
|
|
541
|
-
noUnnecessaryUsePrefix: "
|
|
541
|
+
noUnnecessaryUsePrefix: "A custom Hook '{{name}}' should use at least one other hook."
|
|
542
542
|
},
|
|
543
543
|
schema: []
|
|
544
544
|
},
|
package/dist/index.mjs
CHANGED
|
@@ -26,7 +26,7 @@ var rules = {
|
|
|
26
26
|
|
|
27
27
|
// package.json
|
|
28
28
|
var name2 = "eslint-plugin-react-hooks-extra";
|
|
29
|
-
var version = "1.37.1-
|
|
29
|
+
var version = "1.37.1-next.0";
|
|
30
30
|
var createRule = createRuleForPlugin("hooks-extra");
|
|
31
31
|
function isFromHookCall(context, name3, settings, predicate = constTrue) {
|
|
32
32
|
const hookAlias = settings.additionalHooks[name3] ?? [];
|
|
@@ -511,11 +511,11 @@ var no_unnecessary_use_prefix_default = createRule({
|
|
|
511
511
|
meta: {
|
|
512
512
|
type: "problem",
|
|
513
513
|
docs: {
|
|
514
|
-
description: "enforce
|
|
514
|
+
description: "enforce custom Hooks to use at least one other hook inside",
|
|
515
515
|
[Symbol.for("rule_features")]: RULE_FEATURES5
|
|
516
516
|
},
|
|
517
517
|
messages: {
|
|
518
|
-
noUnnecessaryUsePrefix: "
|
|
518
|
+
noUnnecessaryUsePrefix: "A custom Hook '{{name}}' should use at least one other hook."
|
|
519
519
|
},
|
|
520
520
|
schema: []
|
|
521
521
|
},
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "eslint-plugin-react-hooks-extra",
|
|
3
|
-
"version": "1.37.1-
|
|
3
|
+
"version": "1.37.1-next.0",
|
|
4
4
|
"description": "ESLint React's ESLint plugin for React Hooks related rules.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"react",
|
|
@@ -50,12 +50,12 @@
|
|
|
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.37.1-
|
|
54
|
-
"@eslint-react/core": "1.37.1-
|
|
55
|
-
"@eslint-react/jsx": "1.37.1-
|
|
56
|
-
"@eslint-react/
|
|
57
|
-
"@eslint-react/
|
|
58
|
-
"@eslint-react/eff": "1.37.1-
|
|
53
|
+
"@eslint-react/ast": "1.37.1-next.0",
|
|
54
|
+
"@eslint-react/core": "1.37.1-next.0",
|
|
55
|
+
"@eslint-react/jsx": "1.37.1-next.0",
|
|
56
|
+
"@eslint-react/var": "1.37.1-next.0",
|
|
57
|
+
"@eslint-react/shared": "1.37.1-next.0",
|
|
58
|
+
"@eslint-react/eff": "1.37.1-next.0"
|
|
59
59
|
},
|
|
60
60
|
"devDependencies": {
|
|
61
61
|
"@types/react": "^19.0.12",
|