From dd4439c34a92c0fa57dd5c0346434df0a4634f4b Mon Sep 17 00:00:00 2001 From: shadcn Date: Mon, 16 Feb 2026 22:58:28 +0400 Subject: [PATCH 1/2] 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 From ad851375ddee84aab8042a96b5b1a4e6660acd01 Mon Sep 17 00:00:00 2001 From: shadcn Date: Mon, 16 Feb 2026 23:12:04 +0400 Subject: [PATCH 2/2] fix --- apps/v4/eslint.config.mjs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/apps/v4/eslint.config.mjs b/apps/v4/eslint.config.mjs index 47c1082949..b5dc2d20b2 100644 --- a/apps/v4/eslint.config.mjs +++ b/apps/v4/eslint.config.mjs @@ -2,6 +2,8 @@ import nextVitals from "eslint-config-next/core-web-vitals" import tseslint from "typescript-eslint" const eslintConfig = tseslint.config( + // Remove the @typescript-eslint plugin from next/typescript to prevent + // duplicate registration with tseslint.configs.recommended. ...nextVitals.map((config) => config.name === "next/typescript" ? { ...config, plugins: {} }