diff options
author | Julius Härtl <jus@bitgrid.net> | 2022-08-11 16:17:30 +0300 |
---|---|---|
committer | Julius Härtl <jus@bitgrid.net> | 2022-08-19 00:12:43 +0300 |
commit | 806ebeeb5ca4d587a276ce6dda83f431291d1c07 (patch) | |
tree | 550b672243ff710c2fd24fc1b56c4faf469e2dd8 /src/EditorFactory.js | |
parent | a604767e69359f2cbc1d20fc7b6c2f5c7a1c91f6 (diff) |
Fix eslint errors
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'src/EditorFactory.js')
-rw-r--r-- | src/EditorFactory.js | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/EditorFactory.js b/src/EditorFactory.js index 95716481b..ba86a2954 100644 --- a/src/EditorFactory.js +++ b/src/EditorFactory.js @@ -30,8 +30,8 @@ import EditableTable from './nodes/EditableTable.js' import { Editor } from '@tiptap/core' import { Emoji, Markdown, PlainText, RichText } from './extensions/index.js' import { translate as t } from '@nextcloud/l10n' -import { listLanguages, registerLanguage } from 'lowlight/lib/core' -import { emojiSearch } from '@nextcloud/vue/dist/Functions/emoji' +import { listLanguages, registerLanguage } from 'lowlight/lib/core.js' +import { emojiSearch } from '@nextcloud/vue/dist/Functions/emoji.js' import { VueRenderer } from '@tiptap/vue-2' import EmojiList from './components/EmojiList.vue' import tippy from 'tippy.js' @@ -43,6 +43,7 @@ const loadSyntaxHighlight = async (language) => { console.info(list) if (!listLanguages().includes(language)) { try { + // eslint-disable-next-line n/no-missing-import const syntax = await import(/* webpackChunkName: "highlight/[request]" */'highlight.js/lib/languages/' + language) registerLanguage(language, syntax.default) } catch (e) { |