@willbooster/eslint-config-next 2.5.9 → 2.5.11

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.
Files changed (2) hide show
  1. package/eslint.config.js +5 -3
  2. package/package.json +9 -9
package/eslint.config.js CHANGED
@@ -19,7 +19,8 @@ const { flatConfig: eslintPluginNextFlatConfig } = eslintPluginNext;
19
19
  const reactHooksFlatRecommended = eslintPluginReactHooks.configs.flat.recommended;
20
20
 
21
21
  const config = [
22
- eslintPluginNextFlatConfig.coreWebVitals,
22
+ // Since eslintPluginNextFlatConfig.coreWebVitals does not work on Next.js 16 beta.
23
+ ...[eslintPluginNextFlatConfig?.coreWebVitals].filter(Boolean),
23
24
 
24
25
  // We import configs of eslint-config-js/js-react/ts/ts-react manually so
25
26
  // the Next.js rules layer on top of our standard setups powered by
@@ -175,8 +176,9 @@ const config = [
175
176
  },
176
177
  rules: {
177
178
  '@typescript-eslint/camelcase': 'off', // c.f. https://github.com/typescript-eslint/typescript-eslint/issues/2050
178
- // because `interface Param` cause errors on Next.js
179
- '@typescript-eslint/consistent-type-definitions': ['error', 'type'],
179
+ // cf. https://zenn.dev/bmth/articles/interface-props-extends
180
+ // Note: `interface Params` causes errors on Next.js. We should extends it with Next.js `Params`.
181
+ '@typescript-eslint/consistent-type-definitions': ['error', 'interface'],
180
182
  '@typescript-eslint/consistent-type-imports': 'error',
181
183
  '@typescript-eslint/explicit-function-return-type': [
182
184
  'error',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@willbooster/eslint-config-next",
3
- "version": "2.5.9",
3
+ "version": "2.5.11",
4
4
  "description": "A ESLint flat config for Next.js",
5
5
  "license": "Apache-2.0",
6
6
  "author": "WillBooster Inc.",
@@ -23,15 +23,15 @@
23
23
  "prettier": "@willbooster/prettier-config",
24
24
  "devDependencies": {
25
25
  "@eslint/eslintrc": "3.3.1",
26
- "@eslint/js": "9.37.0",
26
+ "@eslint/js": "9.38.0",
27
27
  "@types/eslint": "9.6.1",
28
28
  "@types/micromatch": "4.0.9",
29
- "@types/node": "24.7.1",
29
+ "@types/node": "24.8.1",
30
30
  "@types/react": "19.2.2",
31
- "@willbooster/prettier-config": "10.2.0",
31
+ "@willbooster/prettier-config": "10.2.1",
32
32
  "eslint": "9.37.0",
33
33
  "eslint-config-flat-gitignore": "2.1.0",
34
- "eslint-config-next": "15.5.4",
34
+ "eslint-config-next": "15.5.6",
35
35
  "eslint-config-prettier": "10.1.8",
36
36
  "eslint-import-resolver-typescript": "4.4.4",
37
37
  "eslint-plugin-import-x": "4.16.1",
@@ -43,15 +43,15 @@
43
43
  "eslint-plugin-unicorn": "61.0.2",
44
44
  "eslint-plugin-unused-imports": "4.2.0",
45
45
  "globals": "16.4.0",
46
- "lint-staged": "16.2.3",
46
+ "lint-staged": "16.2.4",
47
47
  "micromatch": "4.0.8",
48
- "next": "15.5.4",
48
+ "next": "15.5.6",
49
49
  "prettier": "3.6.2",
50
- "prettier-plugin-java": "2.7.5",
50
+ "prettier-plugin-java": "2.7.6",
51
51
  "react": "19.2.0",
52
52
  "sort-package-json": "3.4.0",
53
53
  "typescript": "5.9.3",
54
- "typescript-eslint": "8.46.0",
54
+ "typescript-eslint": "8.46.1",
55
55
  "use-immer": "0.11.0"
56
56
  },
57
57
  "peerDependencies": {