From 9d35c3d650dc0d1e9ff5b6322fea57ee778468dd Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Tue, 16 Sep 2025 21:15:47 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- src/libs/codemirror-mgl.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/libs/codemirror-mgl.ts b/src/libs/codemirror-mgl.ts index 7eed04a1..c471e8a0 100644 --- a/src/libs/codemirror-mgl.ts +++ b/src/libs/codemirror-mgl.ts @@ -182,8 +182,8 @@ export function createEditor(props: { return new EditorView({ doc: props.value, extensions: [ - basicSetup, - json(), + basicSetup, + json(), oneDark, new Compartment().of(EditorState.tabSize.of(2)), EditorView.theme({ @@ -208,7 +208,7 @@ export function createEditor(props: { lintGutter(), linter((view: EditorView) => { const jsonErrors = jsonParseLinter()(view); - if (jsonErrors.length > 0) { + if (jsonErrors.length > 0) { return jsonErrors; } return specificLinter(view); @@ -216,4 +216,4 @@ export function createEditor(props: { ], parent: props.parent, }); -} \ No newline at end of file +}