Skip to content

Commit 57ff54b

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

File tree

2 files changed

+18
-8
lines changed

2 files changed

+18
-8
lines changed

eslint.config.mjs

Lines changed: 17 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,19 @@ 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: [
25+
"node_modules/**",
26+
".next/**",
27+
"out/**",
28+
"build/**",
29+
"next-env.d.ts",
30+
],
31+
},
2132
];

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)