From fb4387ddbbe539960ea40ea18bcb8e294d3adc77 Mon Sep 17 00:00:00 2001 From: QiShaoXuan Date: Mon, 24 Oct 2022 18:16:54 +0800 Subject: [PATCH] fix: lint problems --- .../src/components/shortcuts-modal/config.ts | 131 +++++++++--------- 1 file changed, 65 insertions(+), 66 deletions(-) diff --git a/packages/app/src/components/shortcuts-modal/config.ts b/packages/app/src/components/shortcuts-modal/config.ts index 826cec6d4d..5638268a99 100644 --- a/packages/app/src/components/shortcuts-modal/config.ts +++ b/packages/app/src/components/shortcuts-modal/config.ts @@ -1,67 +1,66 @@ export const macKeyboardShortcuts = { - Undo: '⌘+Z', - Redo: '⌘+⇧+Z', - Bold: '⌘+B', - Italic: '⌘+I', - Underline: '⌘+U', - Strikethrough: '⌘+⇧+S', - 'Inline code': ' ⌘+E', - Link: '⌘+K', - 'Body text': '⌘+⌥+0', - 'Heading 1': '⌘+⌥+1', - 'Heading 2': '⌘+⌥+2', - 'Heading 3': '⌘+⌥+3', - 'Heading 4': '⌘+⌥+4', - 'Heading 5': '⌘+⌥+5', - 'Heading 6': '⌘+⌥+6', - 'Increase indent': 'Tab', - 'Reduce indent': '⇧+Tab', - }; - - export const macMarkdownShortcuts = { - Bold: '**Text** ', - Italic: '*Text* ', - Underline: '~Text~ ', - Strikethrough: '~~Text~~ ', - 'Inline code': '`Text` ', - 'Heading 1': '# Text', - 'Heading 2': '## Text', - 'Heading 3': '### Text', - 'Heading 4': '#### Text', - 'Heading 5': '##### Text', - 'Heading 6': '###### Text', - }; - - export const windowsKeyboardShortcuts = { - Undo: 'Ctrl+Z', - Redo: 'Ctrl+Y', - Bold: 'Ctrl+B', - Italic: 'Ctrl+I', - Underline: 'Ctrl+U', - Strikethrough: 'Ctrl+Shift+S', - 'Inline code': ' Ctrl+E', - Link: 'Ctrl+K', - 'Body text': 'Ctrl+Shift+0', - 'Heading 1': 'Ctrl+Shift+1', - 'Heading 2': 'Ctrl+Shift+2', - 'Heading 3': 'Ctrl+Shift+3', - 'Heading 4': 'Ctrl+Shift+4', - 'Heading 5': 'Ctrl+Shift+5', - 'Heading 6': 'Ctrl+Shift+6', - 'Increase indent': 'Tab', - 'Reduce indent': 'Shift+Tab', - }; - export const winMarkdownShortcuts = { - Bold: '**Text** ', - Italic: '*Text* ', - Underline: '~Text~ ', - Strikethrough: '~~Text~~ ', - 'Inline code': '`Text` ', - 'Heading 1': '# Text', - 'Heading 2': '## Text', - 'Heading 3': '### Text', - 'Heading 4': '#### Text', - 'Heading 5': '##### Text', - 'Heading 6': '###### Text', - }; - + Undo: '⌘+Z', + Redo: '⌘+⇧+Z', + Bold: '⌘+B', + Italic: '⌘+I', + Underline: '⌘+U', + Strikethrough: '⌘+⇧+S', + 'Inline code': ' ⌘+E', + Link: '⌘+K', + 'Body text': '⌘+⌥+0', + 'Heading 1': '⌘+⌥+1', + 'Heading 2': '⌘+⌥+2', + 'Heading 3': '⌘+⌥+3', + 'Heading 4': '⌘+⌥+4', + 'Heading 5': '⌘+⌥+5', + 'Heading 6': '⌘+⌥+6', + 'Increase indent': 'Tab', + 'Reduce indent': '⇧+Tab', +}; + +export const macMarkdownShortcuts = { + Bold: '**Text** ', + Italic: '*Text* ', + Underline: '~Text~ ', + Strikethrough: '~~Text~~ ', + 'Inline code': '`Text` ', + 'Heading 1': '# Text', + 'Heading 2': '## Text', + 'Heading 3': '### Text', + 'Heading 4': '#### Text', + 'Heading 5': '##### Text', + 'Heading 6': '###### Text', +}; + +export const windowsKeyboardShortcuts = { + Undo: 'Ctrl+Z', + Redo: 'Ctrl+Y', + Bold: 'Ctrl+B', + Italic: 'Ctrl+I', + Underline: 'Ctrl+U', + Strikethrough: 'Ctrl+Shift+S', + 'Inline code': ' Ctrl+E', + Link: 'Ctrl+K', + 'Body text': 'Ctrl+Shift+0', + 'Heading 1': 'Ctrl+Shift+1', + 'Heading 2': 'Ctrl+Shift+2', + 'Heading 3': 'Ctrl+Shift+3', + 'Heading 4': 'Ctrl+Shift+4', + 'Heading 5': 'Ctrl+Shift+5', + 'Heading 6': 'Ctrl+Shift+6', + 'Increase indent': 'Tab', + 'Reduce indent': 'Shift+Tab', +}; +export const winMarkdownShortcuts = { + Bold: '**Text** ', + Italic: '*Text* ', + Underline: '~Text~ ', + Strikethrough: '~~Text~~ ', + 'Inline code': '`Text` ', + 'Heading 1': '# Text', + 'Heading 2': '## Text', + 'Heading 3': '### Text', + 'Heading 4': '#### Text', + 'Heading 5': '##### Text', + 'Heading 6': '###### Text', +};