Skip to content

Commit 749ed6a

Browse files
committed
chore: migrate ESLint configuration to flat config format and update lint script
1 parent 1f7a0ec commit 749ed6a

3 files changed

Lines changed: 13 additions & 9 deletions

File tree

.eslintrc.json

Lines changed: 0 additions & 8 deletions
This file was deleted.

eslint.config.mjs

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
import nextCoreWebVitals from "eslint-config-next/core-web-vitals";
2+
3+
export default [
4+
...nextCoreWebVitals,
5+
{
6+
rules: {
7+
"react/no-unescaped-entities": "off",
8+
"@next/next/no-img-element": "off",
9+
"react-hooks/exhaustive-deps": "warn",
10+
},
11+
},
12+
];

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"dev": "next dev",
1010
"build": "next build",
1111
"start": "next start",
12-
"lint": "next lint",
12+
"lint": "eslint .",
1313
"typecheck": "tsc --noEmit",
1414
"analyze": "ANALYZE=true next build",
1515
"test:e2e": "playwright test",

0 commit comments

Comments
 (0)