From dd4439c34a92c0fa57dd5c0346434df0a4634f4b Mon Sep 17 00:00:00 2001 From: shadcn Date: Mon, 16 Feb 2026 22:58:28 +0400 Subject: [PATCH] fix: eslint config --- apps/v4/eslint.config.mjs | 31 ++++++++++++++++++------------- 1 file changed, 18 insertions(+), 13 deletions(-) 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