eslint-plugin-react-hooks-extra 1.37.1-next.2 → 1.37.1-next.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 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-next.2";
52
+ var version = "1.37.1-next.3";
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 custom Hooks to use at least one other hook inside",
537
+ description: "enforce that a function with the 'use' prefix should use at least one Hook inside of it",
538
538
  [Symbol.for("rule_features")]: RULE_FEATURES5
539
539
  },
540
540
  messages: {
541
- noUnnecessaryUsePrefix: "A custom Hook '{{name}}' should use at least one other hook."
541
+ noUnnecessaryUsePrefix: "If your function doesn't call any Hooks, avoid the 'use' prefix. Instead, write it as a regular function without the 'use' prefix."
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-next.2";
29
+ var version = "1.37.1-next.3";
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 custom Hooks to use at least one other hook inside",
514
+ description: "enforce that a function with the 'use' prefix should use at least one Hook inside of it",
515
515
  [Symbol.for("rule_features")]: RULE_FEATURES5
516
516
  },
517
517
  messages: {
518
- noUnnecessaryUsePrefix: "A custom Hook '{{name}}' should use at least one other hook."
518
+ noUnnecessaryUsePrefix: "If your function doesn't call any Hooks, avoid the 'use' prefix. Instead, write it as a regular function without the 'use' prefix."
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-next.2",
3
+ "version": "1.37.1-next.3",
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/core": "1.37.1-next.2",
54
- "@eslint-react/ast": "1.37.1-next.2",
55
- "@eslint-react/eff": "1.37.1-next.2",
56
- "@eslint-react/jsx": "1.37.1-next.2",
57
- "@eslint-react/shared": "1.37.1-next.2",
58
- "@eslint-react/var": "1.37.1-next.2"
53
+ "@eslint-react/ast": "1.37.1-next.3",
54
+ "@eslint-react/core": "1.37.1-next.3",
55
+ "@eslint-react/eff": "1.37.1-next.3",
56
+ "@eslint-react/jsx": "1.37.1-next.3",
57
+ "@eslint-react/shared": "1.37.1-next.3",
58
+ "@eslint-react/var": "1.37.1-next.3"
59
59
  },
60
60
  "devDependencies": {
61
61
  "@types/react": "^19.0.12",