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
This commit is contained in:
dwindown
2025-09-28 23:40:14 +07:00
parent 68db19e076
commit 14a07a6cba

View File

@@ -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(() => {