Files
convex-monorepo/tooling/eslint/nextjs.ts
2025-10-28 10:57:53 -05:00

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",
},
});