16 lines
440 B
TypeScript
16 lines
440 B
TypeScript
import nextPlugin from "@next/eslint-plugin-next";
|
|
import { defineConfig } from "eslint/config";
|
|
|
|
export const nextjsConfig = defineConfig({
|
|
files: ["**/*.ts", "**/*.tsx"],
|
|
plugins: {
|
|
"@next/next": nextPlugin,
|
|
},
|
|
rules: {
|
|
...nextPlugin.configs.recommended.rules,
|
|
...nextPlugin.configs["core-web-vitals"].rules,
|
|
// TypeError: context.getAncestors is not a function
|
|
"@next/next/no-duplicate-head": "off",
|
|
},
|
|
});
|