eslint-plugin-react-hooks-extra 2.5.3 → 2.5.4-beta.1
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 +2 -2
- package/package.json +6 -6
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.5.
|
|
39
|
+
var version = "2.5.4-beta.1";
|
|
40
40
|
|
|
41
41
|
//#endregion
|
|
42
42
|
//#region src/utils/create-rule.ts
|
|
@@ -67,7 +67,7 @@ const RULE_NAME = "no-direct-set-state-in-use-effect";
|
|
|
67
67
|
var no_direct_set_state_in_use_effect_default = createRule({
|
|
68
68
|
meta: {
|
|
69
69
|
type: "problem",
|
|
70
|
-
docs: { description: "Disallows
|
|
70
|
+
docs: { description: "Disallows direct calls to the ['set' function](https://react.dev/reference/react/useState#setstate) of 'useState' in 'useEffect'." },
|
|
71
71
|
messages: { noDirectSetStateInUseEffect: "Do not call the 'set' function '{{name}}' of 'useState' directly in 'useEffect'." },
|
|
72
72
|
schema: []
|
|
73
73
|
},
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "eslint-plugin-react-hooks-extra",
|
|
3
|
-
"version": "2.5.
|
|
3
|
+
"version": "2.5.4-beta.1",
|
|
4
4
|
"description": "ESLint React's ESLint plugin for React Hooks related rules.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"react",
|
|
@@ -45,11 +45,11 @@
|
|
|
45
45
|
"@typescript-eslint/utils": "^8.52.0",
|
|
46
46
|
"string-ts": "^2.3.1",
|
|
47
47
|
"ts-pattern": "^5.9.0",
|
|
48
|
-
"@eslint-react/ast": "2.5.
|
|
49
|
-
"@eslint-react/core": "2.5.
|
|
50
|
-
"@eslint-react/
|
|
51
|
-
"@eslint-react/
|
|
52
|
-
"@eslint-react/
|
|
48
|
+
"@eslint-react/ast": "2.5.4-beta.1",
|
|
49
|
+
"@eslint-react/core": "2.5.4-beta.1",
|
|
50
|
+
"@eslint-react/eff": "2.5.4-beta.1",
|
|
51
|
+
"@eslint-react/shared": "2.5.4-beta.1",
|
|
52
|
+
"@eslint-react/var": "2.5.4-beta.1"
|
|
53
53
|
},
|
|
54
54
|
"devDependencies": {
|
|
55
55
|
"@types/react": "^19.2.7",
|