eslint-plugin-react-hooks-extra 1.19.0 → 1.20.0-beta.2

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 CHANGED
@@ -39,10 +39,10 @@ export default [
39
39
 
40
40
  ## Rules
41
41
 
42
- | Rule | Description | 💼 | 💭 | |
43
- | :------------------------------------- | :------------------------------------------------------------------------ | :-: | :-: | :-: |
44
- | `no-direct-set-state-in-use-effect` | Disallow direct calls to the `set` function of `useState` in `useEffect`. | ✔️ | | |
45
- | `no-redundant-custom-hook` | Warns when custom Hooks that don't use other Hooks. | ✔️ | | |
46
- | `no-unnecessary-use-callback` | Disallow unnecessary usage of `useCallback`. | ✔️ | | |
47
- | `no-unnecessary-use-memo` | Disallow unnecessary usage of `useMemo`. | ✔️ | | |
48
- | `prefer-use-state-lazy-initialization` | Warns function calls made inside `useState` calls. | 🚀 | | |
42
+ | Rule | Description | 💭 | |
43
+ | :------------------------------------- | :------------------------------------------------------------------------ | :-: | :-: |
44
+ | `no-direct-set-state-in-use-effect` | Disallow direct calls to the `set` function of `useState` in `useEffect`. | | |
45
+ | `no-redundant-custom-hook` | Warns when custom Hooks that don't use other Hooks. | | |
46
+ | `no-unnecessary-use-callback` | Disallow unnecessary usage of `useCallback`. | | |
47
+ | `no-unnecessary-use-memo` | Disallow unnecessary usage of `useMemo`. | | |
48
+ | `prefer-use-state-lazy-initialization` | Warns function calls made inside `useState` calls. | | |
package/dist/index.js CHANGED
@@ -31,7 +31,7 @@ var VAR5__namespace = /*#__PURE__*/_interopNamespace(VAR5);
31
31
 
32
32
  // package.json
33
33
  var name = "eslint-plugin-react-hooks-extra";
34
- var version = "1.19.0";
34
+ var version = "1.20.0-beta.2";
35
35
  var createRule = shared.createRuleForPlugin("hooks-extra");
36
36
  function isFromHookCall(name2, context, settings, predicate = tools.F.constTrue) {
37
37
  const hookAlias = settings.additionalHooks?.[name2] ?? [];
package/dist/index.mjs CHANGED
@@ -8,7 +8,7 @@ import { match, isMatching } from 'ts-pattern';
8
8
 
9
9
  // package.json
10
10
  var name = "eslint-plugin-react-hooks-extra";
11
- var version = "1.19.0";
11
+ var version = "1.20.0-beta.2";
12
12
  var createRule = createRuleForPlugin("hooks-extra");
13
13
  function isFromHookCall(name2, context, settings, predicate = F.constTrue) {
14
14
  const hookAlias = settings.additionalHooks?.[name2] ?? [];
package/package.json CHANGED
@@ -1,12 +1,15 @@
1
1
  {
2
2
  "name": "eslint-plugin-react-hooks-extra",
3
- "version": "1.19.0",
3
+ "version": "1.20.0-beta.2",
4
4
  "description": "ESLint React's ESLint plugin for React Hooks related rules.",
5
5
  "keywords": [
6
+ "react",
7
+ "hooks",
8
+ "hooks-extra",
6
9
  "eslint",
10
+ "eslint-react",
7
11
  "eslint-plugin",
8
- "react",
9
- "hooks"
12
+ "eslint-plugin-react-hooks-extra"
10
13
  ],
11
14
  "homepage": "https://github.com/rel1cx/eslint-react",
12
15
  "bugs": {
@@ -46,13 +49,13 @@
46
49
  "@typescript-eslint/types": "^8.18.0",
47
50
  "@typescript-eslint/utils": "^8.18.0",
48
51
  "ts-pattern": "^5.5.0",
49
- "@eslint-react/ast": "1.19.0",
50
- "@eslint-react/shared": "1.19.0",
51
- "@eslint-react/core": "1.19.0",
52
- "@eslint-react/tools": "1.19.0",
53
- "@eslint-react/types": "1.19.0",
54
- "@eslint-react/jsx": "1.19.0",
55
- "@eslint-react/var": "1.19.0"
52
+ "@eslint-react/ast": "1.20.0-beta.2",
53
+ "@eslint-react/jsx": "1.20.0-beta.2",
54
+ "@eslint-react/shared": "1.20.0-beta.2",
55
+ "@eslint-react/core": "1.20.0-beta.2",
56
+ "@eslint-react/tools": "1.20.0-beta.2",
57
+ "@eslint-react/types": "1.20.0-beta.2",
58
+ "@eslint-react/var": "1.20.0-beta.2"
56
59
  },
57
60
  "devDependencies": {
58
61
  "@types/react": "^19.0.1",