From d0324bf13644fef23de96de2113811d0da263ced Mon Sep 17 00:00:00 2001 From: yschoi Date: Mon, 18 Aug 2025 16:18:23 +0900 Subject: [PATCH] =?UTF-8?q?warn=20=EB=A1=9C=EA=B7=B8=20=EC=B6=9C=EB=A0=A5?= =?UTF-8?q?=20=EC=A0=9C=EA=B1=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/dm/eslint.config.mjs | 2 ++ apps/fo/eslint.config.mjs | 2 ++ apps/sn/eslint.config.mjs | 2 ++ apps/wr/eslint.config.mjs | 2 ++ packages/common/components/src/ui/dialog/index.tsx | 2 +- 5 files changed, 9 insertions(+), 1 deletion(-) diff --git a/apps/dm/eslint.config.mjs b/apps/dm/eslint.config.mjs index 29e63f653..f477f55e1 100644 --- a/apps/dm/eslint.config.mjs +++ b/apps/dm/eslint.config.mjs @@ -4,6 +4,7 @@ import { FlatCompat } from "@eslint/eslintrc"; const __filename = fileURLToPath(import.meta.url); const __dirname = dirname(__filename); +const isProd = process.env.NODE_ENV === "production"; const compat = new FlatCompat({ baseDirectory: __dirname, @@ -14,6 +15,7 @@ const eslintConfig = [ {rules:{ // other rules.. "@typescript-eslint/no-explicit-any": "off", + ...(isProd ? { "react-hooks/exhaustive-deps": "off" } : {}), }}, ]; diff --git a/apps/fo/eslint.config.mjs b/apps/fo/eslint.config.mjs index 29e63f653..f477f55e1 100644 --- a/apps/fo/eslint.config.mjs +++ b/apps/fo/eslint.config.mjs @@ -4,6 +4,7 @@ import { FlatCompat } from "@eslint/eslintrc"; const __filename = fileURLToPath(import.meta.url); const __dirname = dirname(__filename); +const isProd = process.env.NODE_ENV === "production"; const compat = new FlatCompat({ baseDirectory: __dirname, @@ -14,6 +15,7 @@ const eslintConfig = [ {rules:{ // other rules.. "@typescript-eslint/no-explicit-any": "off", + ...(isProd ? { "react-hooks/exhaustive-deps": "off" } : {}), }}, ]; diff --git a/apps/sn/eslint.config.mjs b/apps/sn/eslint.config.mjs index c85fb67c4..5524ee038 100644 --- a/apps/sn/eslint.config.mjs +++ b/apps/sn/eslint.config.mjs @@ -4,6 +4,7 @@ import { FlatCompat } from "@eslint/eslintrc"; const __filename = fileURLToPath(import.meta.url); const __dirname = dirname(__filename); +const isProd = process.env.NODE_ENV === "production"; const compat = new FlatCompat({ baseDirectory: __dirname, @@ -11,6 +12,7 @@ const compat = new FlatCompat({ const eslintConfig = [ ...compat.extends("next/core-web-vitals", "next/typescript"), + ...(isProd ? { "react-hooks/exhaustive-deps": "off" } : {}), ]; export default eslintConfig; diff --git a/apps/wr/eslint.config.mjs b/apps/wr/eslint.config.mjs index 73d6b7492..40c800c78 100644 --- a/apps/wr/eslint.config.mjs +++ b/apps/wr/eslint.config.mjs @@ -4,6 +4,7 @@ import { fileURLToPath } from "url"; const __filename = fileURLToPath(import.meta.url); const __dirname = dirname(__filename); +const isProd = process.env.NODE_ENV === "production"; const compat = new FlatCompat({ baseDirectory: __dirname, @@ -14,6 +15,7 @@ const eslintConfig = [ {rules:{ // other rules.. "@typescript-eslint/no-explicit-any": "off", + ...(isProd ? { "react-hooks/exhaustive-deps": "off" } : {}), }}, ]; diff --git a/packages/common/components/src/ui/dialog/index.tsx b/packages/common/components/src/ui/dialog/index.tsx index 1b6ff30f9..2f4bedd3d 100644 --- a/packages/common/components/src/ui/dialog/index.tsx +++ b/packages/common/components/src/ui/dialog/index.tsx @@ -37,7 +37,7 @@ const DialogContent = React.forwardRef<