From c84a01b4aedeff0bfc83c4f96a1f1d49138b4205 Mon Sep 17 00:00:00 2001 From: Philip Molares Date: Sat, 1 Feb 2025 22:06:18 +0100 Subject: [PATCH] chore(eslint): add missing global comments These comments tell eslint that those special variables are globally accessible Signed-off-by: Philip Molares --- public/js/lib/editor/index.js | 1 + public/js/lib/editor/utils.js | 1 + 2 files changed, 2 insertions(+) diff --git a/public/js/lib/editor/index.js b/public/js/lib/editor/index.js index 65b34a68e..da2aafe2d 100644 --- a/public/js/lib/editor/index.js +++ b/public/js/lib/editor/index.js @@ -1,3 +1,4 @@ +/* global CodeMirror, inlineAttachment, editor, Cookies */ import '@hedgedoc/codemirror-5/addon/comment/comment.js' import '@hedgedoc/codemirror-5/addon/comment/continuecomment.js' import '@hedgedoc/codemirror-5/addon/dialog/dialog.js' diff --git a/public/js/lib/editor/utils.js b/public/js/lib/editor/utils.js index 3d799267a..657ca2f49 100644 --- a/public/js/lib/editor/utils.js +++ b/public/js/lib/editor/utils.js @@ -1,3 +1,4 @@ +/* global CodeMirror, editor */ const wrapSymbols = ['*', '_', '~', '^', '+', '='] export function wrapTextWith (editor, cm, symbol) {