[pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci
This commit is contained in:
pre-commit-ci[bot]
2025-09-16 21:15:47 +00:00
parent 176e1e4ae8
commit 9d35c3d650
+4 -4
View File
@@ -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,
});
}
}