We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 005b780 commit e2d7cc5Copy full SHA for e2d7cc5
starters/nextjs/basic/.eslintrc.json
starters/nextjs/basic/eslint.config.mjs
@@ -0,0 +1,11 @@
1
+import { FlatCompat } from "@eslint/eslintrc";
2
+const compat = new FlatCompat({
3
+ // import.meta.dirname is available after Node.js v20.11.0
4
+ baseDirectory: import.meta.dirname,
5
+});
6
+const eslintConfig = [
7
+ ...compat.config({
8
+ extends: ["next/core-web-vitals"],
9
+ }),
10
+];
11
+export default eslintConfig;
0 commit comments