eslint-plugin-react-hooks-extra 2.4.0-next.9 → 2.4.1-beta.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.
Files changed (2) hide show
  1. package/dist/index.js +2 -6
  2. package/package.json +11 -11
package/dist/index.js CHANGED
@@ -36,7 +36,7 @@ const rules = { "react-hooks-extra/no-direct-set-state-in-use-effect": "warn" };
36
36
  //#endregion
37
37
  //#region package.json
38
38
  var name = "eslint-plugin-react-hooks-extra";
39
- var version = "2.4.0-next.9";
39
+ var version = "2.4.1-beta.0";
40
40
 
41
41
  //#endregion
42
42
  //#region src/utils/create-rule.ts
@@ -64,14 +64,10 @@ function isVariableDeclaratorFromHookCall(node) {
64
64
  //#endregion
65
65
  //#region src/rules/no-direct-set-state-in-use-effect.ts
66
66
  const RULE_NAME = "no-direct-set-state-in-use-effect";
67
- const RULE_FEATURES = ["EXP"];
68
67
  var no_direct_set_state_in_use_effect_default = createRule({
69
68
  meta: {
70
69
  type: "problem",
71
- docs: {
72
- description: "Disallow direct calls to the `set` function of `useState` in `useEffect`.",
73
- [Symbol.for("rule_features")]: RULE_FEATURES
74
- },
70
+ docs: { description: "Disallow direct calls to the `set` function of `useState` in `useEffect`." },
75
71
  messages: { noDirectSetStateInUseEffect: "Do not call the 'set' function '{{name}}' of 'useState' directly in 'useEffect'." },
76
72
  schema: []
77
73
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eslint-plugin-react-hooks-extra",
3
- "version": "2.4.0-next.9",
3
+ "version": "2.4.1-beta.0",
4
4
  "description": "ESLint React's ESLint plugin for React Hooks related rules.",
5
5
  "keywords": [
6
6
  "react",
@@ -39,22 +39,22 @@
39
39
  "./package.json"
40
40
  ],
41
41
  "dependencies": {
42
- "@typescript-eslint/scope-manager": "^8.50.0",
43
- "@typescript-eslint/type-utils": "^8.50.0",
44
- "@typescript-eslint/types": "^8.50.0",
45
- "@typescript-eslint/utils": "^8.50.0",
42
+ "@typescript-eslint/scope-manager": "^8.50.1",
43
+ "@typescript-eslint/type-utils": "^8.50.1",
44
+ "@typescript-eslint/types": "^8.50.1",
45
+ "@typescript-eslint/utils": "^8.50.1",
46
46
  "string-ts": "^2.3.1",
47
47
  "ts-pattern": "^5.9.0",
48
- "@eslint-react/ast": "2.4.0-next.9",
49
- "@eslint-react/core": "2.4.0-next.9",
50
- "@eslint-react/eff": "2.4.0-next.9",
51
- "@eslint-react/shared": "2.4.0-next.9",
52
- "@eslint-react/var": "2.4.0-next.9"
48
+ "@eslint-react/ast": "2.4.1-beta.0",
49
+ "@eslint-react/core": "2.4.1-beta.0",
50
+ "@eslint-react/eff": "2.4.1-beta.0",
51
+ "@eslint-react/shared": "2.4.1-beta.0",
52
+ "@eslint-react/var": "2.4.1-beta.0"
53
53
  },
54
54
  "devDependencies": {
55
55
  "@types/react": "^19.2.7",
56
56
  "@types/react-dom": "^19.2.3",
57
- "tsdown": "^0.18.0",
57
+ "tsdown": "^0.18.2",
58
58
  "@local/configs": "0.0.0"
59
59
  },
60
60
  "peerDependencies": {