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<