diff --git a/apps/v4/eslint.config.mjs b/apps/v4/eslint.config.mjs index 451ddf88d7..47c1082949 100644 --- a/apps/v4/eslint.config.mjs +++ b/apps/v4/eslint.config.mjs @@ -1,19 +1,24 @@ import nextVitals from "eslint-config-next/core-web-vitals" -import { defineConfig, globalIgnores } from "eslint/config" import tseslint from "typescript-eslint" -const eslintConfig = defineConfig([ - ...nextVitals, +const eslintConfig = tseslint.config( + ...nextVitals.map((config) => + config.name === "next/typescript" + ? { ...config, plugins: {} } + : config + ), ...tseslint.configs.recommended, - globalIgnores([ - "node_modules/**", - ".next/**", - "out/**", - "build/**", - "next-env.d.ts", - ".source/**", - "**/__index__.tsx", - ]), + { + ignores: [ + "node_modules/**", + ".next/**", + "out/**", + "build/**", + "next-env.d.ts", + ".source/**", + "**/__index__.tsx", + ], + }, { rules: { "react-hooks/incompatible-library": "off", @@ -30,6 +35,6 @@ const eslintConfig = defineConfig([ ], }, }, -]) +) export default eslintConfig