1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-11-29 22:48:10 +02:00

Tools: Add prefer-arrow-callbacks to ESlint rules (#7810)

This commit is contained in:
pedr
2023-02-20 12:02:29 -03:00
committed by GitHub
parent ca575162f7
commit f2995dd196
206 changed files with 511 additions and 510 deletions

View File

@@ -1,7 +1,7 @@
// Helper commands added to the the CodeMirror instance
export default function useJoplinCommands(CodeMirror: any) {
CodeMirror.defineExtension('commandExists', function(name: string) {
CodeMirror.defineExtension('commandExists', (name: string) => {
return !!CodeMirror.commands[name];
});
}

View File

@@ -93,7 +93,7 @@ export default function useKeymap(CodeMirror: any) {
}
CodeMirror.defineExtension('supportsCommand', function(cmd: EditorCommand) {
CodeMirror.defineExtension('supportsCommand', (cmd: EditorCommand) => {
return isEditorCommand(cmd.name) && editorCommandToCodeMirror(cmd.name) in CodeMirror.commands;
});