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:
@@ -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(() => {
|
||||
|
||||
Reference in New Issue
Block a user