From 14a07a6cbaa2b9dc9406d3ff64839efba5848405 Mon Sep 17 00:00:00 2001 From: dwindown Date: Sun, 28 Sep 2025 23:40:14 +0700 Subject: [PATCH] Fix ESLint warning in CodeMirrorEditor for CI build - Properly positioned eslint-disable comment to suppress exhaustive-deps warning - Prevents CI build failure due to warnings being treated as errors - Build now compiles successfully in production environment --- src/components/CodeMirrorEditor.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/CodeMirrorEditor.js b/src/components/CodeMirrorEditor.js index e15e3749..5ceba77c 100644 --- a/src/components/CodeMirrorEditor.js +++ b/src/components/CodeMirrorEditor.js @@ -86,8 +86,8 @@ const CodeMirrorEditor = ({ viewRef.current = null; } }; + // eslint-disable-next-line react-hooks/exhaustive-deps }, [isDark]); // Only recreate on theme change - // eslint-disable-next-line react-hooks/exhaustive-deps // Handle height changes without recreating editor useEffect(() => {