@willbooster/eslint-config-next 2.5.7 → 2.5.9

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
@@ -8,7 +8,7 @@ yarn add -D @willbooster/eslint-config-next \
8
8
  eslint \
9
9
  eslint-config-flat-gitignore \
10
10
  eslint-config-prettier \
11
- eslint-plugin-import \
11
+ eslint-plugin-import-x \
12
12
  eslint-plugin-prettier \
13
13
  eslint-plugin-react \
14
14
  eslint-plugin-react-hooks \
package/eslint.config.js CHANGED
@@ -7,6 +7,7 @@ import eslintConfigPrettier from 'eslint-config-prettier';
7
7
  import eslintPluginImportX from 'eslint-plugin-import-x';
8
8
  import eslintPluginReact from 'eslint-plugin-react';
9
9
  import eslintPluginReactCompiler from 'eslint-plugin-react-compiler';
10
+ import eslintPluginReactHooks from 'eslint-plugin-react-hooks';
10
11
  import eslintPluginSortClassMembers from 'eslint-plugin-sort-class-members';
11
12
  import eslintPluginSortDestructureKeys from 'eslint-plugin-sort-destructure-keys';
12
13
  import eslintPluginUnicorn from 'eslint-plugin-unicorn';
@@ -15,6 +16,7 @@ import globals from 'globals';
15
16
  import tseslint from 'typescript-eslint';
16
17
 
17
18
  const { flatConfig: eslintPluginNextFlatConfig } = eslintPluginNext;
19
+ const reactHooksFlatRecommended = eslintPluginReactHooks.configs.flat.recommended;
18
20
 
19
21
  const config = [
20
22
  eslintPluginNextFlatConfig.coreWebVitals,
@@ -121,10 +123,8 @@ const config = [
121
123
  // cf. https://github.com/jsx-eslint/eslint-plugin-react#flat-configs
122
124
  eslintPluginReact.configs.flat.recommended,
123
125
  eslintPluginReact.configs.flat['jsx-runtime'],
124
- // cf. https://github.com/facebook/react/tree/main/packages/eslint-plugin-react-hooks#flat-config-eslintconfigjsts
125
- // To fix the error: ConfigError: Config "react-hooks/recommended": Key "plugins": Cannot redefine plugin "react-hooks".
126
- // TODO: re-enable the below configs after the error is fixed.
127
- // eslintPluginReactHooks.configs['recommended-latest'],
126
+ // cf. https://github.com/facebook/react/tree/main/packages/eslint-plugin-react-hooks#readme
127
+ reactHooksFlatRecommended,
128
128
  // cf. https://www.npmjs.com/package/eslint-plugin-react-compiler
129
129
  eslintPluginReactCompiler.configs.recommended,
130
130
  {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@willbooster/eslint-config-next",
3
- "version": "2.5.7",
3
+ "version": "2.5.9",
4
4
  "description": "A ESLint flat config for Next.js",
5
5
  "license": "Apache-2.0",
6
6
  "author": "WillBooster Inc.",
@@ -26,10 +26,10 @@
26
26
  "@eslint/js": "9.37.0",
27
27
  "@types/eslint": "9.6.1",
28
28
  "@types/micromatch": "4.0.9",
29
- "@types/node": "24.6.2",
30
- "@types/react": "19.2.0",
29
+ "@types/node": "24.7.1",
30
+ "@types/react": "19.2.2",
31
31
  "@willbooster/prettier-config": "10.2.0",
32
- "eslint": "9.35.0",
32
+ "eslint": "9.37.0",
33
33
  "eslint-config-flat-gitignore": "2.1.0",
34
34
  "eslint-config-next": "15.5.4",
35
35
  "eslint-config-prettier": "10.1.8",
@@ -37,7 +37,7 @@
37
37
  "eslint-plugin-import-x": "4.16.1",
38
38
  "eslint-plugin-react": "7.37.5",
39
39
  "eslint-plugin-react-compiler": "19.1.0-rc.2",
40
- "eslint-plugin-react-hooks": "5.2.0",
40
+ "eslint-plugin-react-hooks": "7.0.0",
41
41
  "eslint-plugin-sort-class-members": "1.21.0",
42
42
  "eslint-plugin-sort-destructure-keys": "2.0.0",
43
43
  "eslint-plugin-unicorn": "61.0.2",
@@ -51,7 +51,7 @@
51
51
  "react": "19.2.0",
52
52
  "sort-package-json": "3.4.0",
53
53
  "typescript": "5.9.3",
54
- "typescript-eslint": "8.45.0",
54
+ "typescript-eslint": "8.46.0",
55
55
  "use-immer": "0.11.0"
56
56
  },
57
57
  "peerDependencies": {
@@ -65,7 +65,7 @@
65
65
  "eslint-plugin-import-x": ">=4",
66
66
  "eslint-plugin-react": ">=7",
67
67
  "eslint-plugin-react-compiler": ">=19.1.0-rc.2",
68
- "eslint-plugin-react-hooks": ">=5",
68
+ "eslint-plugin-react-hooks": ">=6",
69
69
  "eslint-plugin-sort-class-members": ">=1.21",
70
70
  "eslint-plugin-sort-destructure-keys": ">=2",
71
71
  "eslint-plugin-unicorn": ">=59",