Skip to content

Commit 2ccf7cf

Browse files
committed
fix: patch legacy Next ESLint rules
1 parent afa8f42 commit 2ccf7cf

3 files changed

Lines changed: 31 additions & 1 deletion

File tree

eslint.config.mjs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import { dirname } from "node:path";
22
import { fileURLToPath } from "node:url";
3+
import { fixupConfigRules } from "@eslint/compat";
34
import { FlatCompat } from "@eslint/eslintrc";
45
import { defineConfig, globalIgnores } from "eslint/config";
56

@@ -11,7 +12,9 @@ const compat = new FlatCompat({
1112
});
1213

1314
const eslintConfig = defineConfig([
14-
...compat.extends("next/core-web-vitals", "next/typescript"),
15+
...fixupConfigRules(
16+
compat.extends("next/core-web-vitals", "next/typescript"),
17+
),
1518
// Override default ignores of eslint-config-next.
1619
globalIgnores([
1720
// Default ignores of eslint-config-next:

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131
"zod": "^4.4.1"
3232
},
3333
"devDependencies": {
34+
"@eslint/compat": "^2.0.5",
3435
"@eslint/eslintrc": "3.3.5",
3536
"@tailwindcss/postcss": "^4",
3637
"@types/bcryptjs": "^3.0.0",

pnpm-lock.yaml

Lines changed: 26 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)