1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-07-16 00:14:34 +02:00

Tools: Apply eslint rules "no-console" and "id-denylist"

This commit is contained in:
Laurent Cozic
2023-02-16 10:55:24 +00:00
parent 625689dbb1
commit 7fa1459dc3
77 changed files with 183 additions and 79 deletions

View File

@ -315,6 +315,7 @@ function NoteEditor(props: Props, ref: any) {
const handlers: Record<string, Function> = {
onLog: (event: any) => {
// eslint-disable-next-line no-console
console.info('CodeMirror:', ...event.value);
},
@ -323,7 +324,6 @@ function NoteEditor(props: Props, ref: any) {
},
onUndoRedoDepthChange: (event: UndoRedoDepthChangeEvent) => {
console.info('onUndoRedoDepthChange', event);
props.onUndoRedoDepthChange(event);
},
@ -355,6 +355,7 @@ function NoteEditor(props: Props, ref: any) {
if (handlers[msg.name]) {
handlers[msg.name](msg.data);
} else {
// eslint-disable-next-line no-console
console.info('Unsupported CodeMirror message:', msg);
}
}, [props.onSelectionChange, props.onUndoRedoDepthChange, props.onChange, editorControl]);