eslint-plugin-react-hooks-extra 1.5.22-next.0 → 1.5.22
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/README.md +6 -6
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +8 -8
package/README.md
CHANGED
|
@@ -40,9 +40,9 @@ export default [
|
|
|
40
40
|
|
|
41
41
|
## Rules
|
|
42
42
|
|
|
43
|
-
| Rule
|
|
44
|
-
|
|
|
45
|
-
| ensure-custom-hooks-using-other-hooks | Warns when custom Hooks that don't use other Hooks. | ✔️ | | |
|
|
46
|
-
| ensure-use-callback-has-non-empty-deps | Warns when `useCallback` is called with empty dependencies array. | 🧐 | | |
|
|
47
|
-
| ensure-use-memo-has-non-empty-deps | Warns when `useMemo` is called with empty dependencies array. | 🧐 | | |
|
|
48
|
-
| prefer-use-state-lazy-initialization | Warns function calls made inside `useState` calls. | 🚀 | | |
|
|
43
|
+
| Rule | Description | 💼 | 💭 | ❌ |
|
|
44
|
+
| :--------------------------------------- | :---------------------------------------------------------------- | :-: | :-: | :-: |
|
|
45
|
+
| `ensure-custom-hooks-using-other-hooks` | Warns when custom Hooks that don't use other Hooks. | ✔️ | | |
|
|
46
|
+
| `ensure-use-callback-has-non-empty-deps` | Warns when `useCallback` is called with empty dependencies array. | 🧐 | | |
|
|
47
|
+
| `ensure-use-memo-has-non-empty-deps` | Warns when `useMemo` is called with empty dependencies array. | 🧐 | | |
|
|
48
|
+
| `prefer-use-state-lazy-initialization` | Warns function calls made inside `useState` calls. | 🚀 | | |
|
package/dist/index.js
CHANGED
|
@@ -13,7 +13,7 @@ var __export = (target, all2) => {
|
|
|
13
13
|
|
|
14
14
|
// package.json
|
|
15
15
|
var name = "eslint-plugin-react-hooks-extra";
|
|
16
|
-
var version = "1.5.22
|
|
16
|
+
var version = "1.5.22";
|
|
17
17
|
var createRule = shared.createRuleForPlugin("hooks-extra");
|
|
18
18
|
|
|
19
19
|
// src/rules/ensure-custom-hooks-using-other-hooks.ts
|
package/dist/index.mjs
CHANGED
|
@@ -11,7 +11,7 @@ var __export = (target, all2) => {
|
|
|
11
11
|
|
|
12
12
|
// package.json
|
|
13
13
|
var name = "eslint-plugin-react-hooks-extra";
|
|
14
|
-
var version = "1.5.22
|
|
14
|
+
var version = "1.5.22";
|
|
15
15
|
var createRule = createRuleForPlugin("hooks-extra");
|
|
16
16
|
|
|
17
17
|
// src/rules/ensure-custom-hooks-using-other-hooks.ts
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "eslint-plugin-react-hooks-extra",
|
|
3
|
-
"version": "1.5.22
|
|
3
|
+
"version": "1.5.22",
|
|
4
4
|
"description": "ESLint React's ESLint plugin for React Hooks related rules.",
|
|
5
5
|
"homepage": "https://github.com/rel1cx/eslint-react",
|
|
6
6
|
"bugs": {
|
|
@@ -39,13 +39,13 @@
|
|
|
39
39
|
"@typescript-eslint/type-utils": "7.15.0",
|
|
40
40
|
"@typescript-eslint/types": "7.15.0",
|
|
41
41
|
"@typescript-eslint/utils": "7.15.0",
|
|
42
|
-
"@eslint-react/ast": "1.5.22
|
|
43
|
-
"@eslint-react/core": "1.5.22
|
|
44
|
-
"@eslint-react/shared": "1.5.22
|
|
45
|
-
"@eslint-react/tools": "1.5.22
|
|
46
|
-
"@eslint-react/var": "1.5.22
|
|
47
|
-
"@eslint-react/
|
|
48
|
-
"@eslint-react/
|
|
42
|
+
"@eslint-react/ast": "1.5.22",
|
|
43
|
+
"@eslint-react/core": "1.5.22",
|
|
44
|
+
"@eslint-react/shared": "1.5.22",
|
|
45
|
+
"@eslint-react/tools": "1.5.22",
|
|
46
|
+
"@eslint-react/var": "1.5.22",
|
|
47
|
+
"@eslint-react/jsx": "1.5.22",
|
|
48
|
+
"@eslint-react/types": "1.5.22"
|
|
49
49
|
},
|
|
50
50
|
"devDependencies": {
|
|
51
51
|
"dedent": "1.5.3",
|