Skip to content

Commit 4b8767f

Browse files
committed
chore: Run npx @next/codemod@canary next-lint-to-eslint-cli
1 parent cb747d6 commit 4b8767f

File tree

2 files changed

+12
-8
lines changed

2 files changed

+12
-8
lines changed

eslint.config.mjs

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
import nextCoreWebVitals from "eslint-config-next/core-web-vitals";
2+
import nextTypescript from "eslint-config-next/typescript";
13
import path from "node:path";
24
import { fileURLToPath } from "node:url";
35
import js from "@eslint/js";
@@ -12,10 +14,13 @@ const compat = new FlatCompat({
1214
});
1315

1416
export default [
15-
...compat.extends(
16-
"prettier",
17-
"eslint:recommended",
18-
"plugin:@typescript-eslint/recommended",
19-
"plugin:@next/next/core-web-vitals",
20-
),
17+
...nextCoreWebVitals,
18+
...nextTypescript,
19+
...compat.extends("prettier"),
20+
...compat.extends("eslint:recommended"),
21+
...compat.extends("plugin:@typescript-eslint/recommended"),
22+
...compat.extends("plugin:@next/next/core-web-vitals"),
23+
{
24+
ignores: ["node_modules/**", ".next/**", "out/**", "build/**", "next-env.d.ts"]
25+
}
2126
];

package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"dev": "next dev",
77
"build": "next build",
88
"start": "next start",
9-
"lint": "next lint"
9+
"lint": "eslint ."
1010
},
1111
"dependencies": {
1212
"@mantine/charts": "^8.3.5",
@@ -22,7 +22,6 @@
2222
"recharts": "^3.3.0"
2323
},
2424
"devDependencies": {
25-
"@eslint/eslintrc": "^3.3.1",
2625
"@eslint/js": "^9.38.0",
2726
"@types/d3": "^7.4.3",
2827
"@types/jsdom": "^27.0.0",

0 commit comments

Comments
 (0)