eslint-plugin-react-hooks-extra 2.9.3 → 2.9.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/README.md CHANGED
@@ -11,12 +11,9 @@ npm install --save-dev eslint-plugin-react-hooks-extra
11
11
 
12
12
  ## Setup
13
13
 
14
- ```js
15
- // eslint.config.js
16
-
17
- // @ts-check
14
+ ```ts
18
15
  import js from "@eslint/js";
19
- import reactHooksExtra from "eslint-plugin-react-hooks-extra";
16
+ import hooksExtra from "eslint-plugin-react-hooks-extra";
20
17
  import { defineConfig } from "eslint/config";
21
18
  import tseslint from "typescript-eslint";
22
19
 
@@ -26,7 +23,8 @@ export default defineConfig(
26
23
  extends: [
27
24
  js.configs.recommended,
28
25
  tseslint.configs.recommended,
29
- reactHooksExtra.configs.recommended,
26
+ // Add this plugin's config below js/tseslint configs
27
+ hooksExtra.configs.recommended,
30
28
  ],
31
29
  rules: {
32
30
  // Put rules you want to override here
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.9.3";
39
+ var version = "2.9.4-beta.1";
40
40
 
41
41
  //#endregion
42
42
  //#region src/utils/create-rule.ts
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eslint-plugin-react-hooks-extra",
3
- "version": "2.9.3",
3
+ "version": "2.9.4-beta.1",
4
4
  "description": "ESLint React's ESLint plugin for React Hooks related rules.",
5
5
  "keywords": [
6
6
  "react",
@@ -44,11 +44,11 @@
44
44
  "@typescript-eslint/types": "^8.54.0",
45
45
  "@typescript-eslint/utils": "^8.54.0",
46
46
  "ts-pattern": "^5.9.0",
47
- "@eslint-react/ast": "2.9.3",
48
- "@eslint-react/shared": "2.9.3",
49
- "@eslint-react/core": "2.9.3",
50
- "@eslint-react/var": "2.9.3",
51
- "@eslint-react/eff": "2.9.3"
47
+ "@eslint-react/ast": "2.9.4-beta.1",
48
+ "@eslint-react/core": "2.9.4-beta.1",
49
+ "@eslint-react/shared": "2.9.4-beta.1",
50
+ "@eslint-react/var": "2.9.4-beta.1",
51
+ "@eslint-react/eff": "2.9.4-beta.1"
52
52
  },
53
53
  "devDependencies": {
54
54
  "@types/react": "^19.2.10",