Skip to content

Commit 94a46d4

Browse files
committed
Migrated from next lint to the ESLint CLI
1 parent bd59c01 commit 94a46d4

File tree

2 files changed

+7
-8
lines changed

2 files changed

+7
-8
lines changed

eslint.config.mjs

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,12 @@ const compat = new FlatCompat({
99
baseDirectory: __dirname,
1010
});
1111

12-
const eslintConfig = [
13-
...compat.extends("next/core-web-vitals", "next/typescript"),
14-
{
15-
rules: {
16-
"react/no-unescaped-entities": "off",
17-
},
12+
const eslintConfig = [{
13+
ignores: ["node_modules/**", ".next/**", "out/**", "build/**", "next-env.d.ts"]
14+
}, ...compat.extends("next/core-web-vitals", "next/typescript"), {
15+
rules: {
16+
"react/no-unescaped-entities": "off",
1817
},
19-
];
18+
}];
2019

2120
export default eslintConfig;

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"dev": "next dev --turbo",
77
"build": "next build",
88
"start": "next start",
9-
"lint": "next lint",
9+
"lint": "eslint .",
1010
"format": "prettier --write 'src/**/*.{ts,tsx}'",
1111
"diff": "git --no-pager diff --staged --function-context > commit.txt"
1212
},

0 commit comments

Comments
 (0)