You've already forked joplin
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:
@ -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]);
|
||||
|
Reference in New Issue
Block a user