mirror of
https://github.com/maputnik/editor.git
synced 2026-08-19 11:37:27 +00:00
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
This commit is contained in:
@@ -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,
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user