Skip to content

Commit 93b27ee

Browse files
committed
Add a setting to turn off linter by default
Since I've seen some exceptions from the linter, I thought it might be nice to deploy with the linter off to see how things are going.
1 parent 323101d commit 93b27ee

File tree

2 files changed

+11
-3
lines changed

2 files changed

+11
-3
lines changed

src/components/IdeEditor.jsx

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -242,9 +242,12 @@ export default function IdeEditor({ node }) {
242242
multiSelectAction: "forEach",
243243
scrollIntoView: "selectionPart",
244244
});
245-
// Register the linter web worker with the ACE editor
246-
const languageProvider = LanguageProvider.create(aceLinterWorker);
247-
languageProvider.registerEditor(aceEditorRef.current.editor);
245+
246+
if (config.editor.linter) {
247+
// Register the linter web worker with the ACE editor
248+
const languageProvider = LanguageProvider.create(aceLinterWorker);
249+
languageProvider.registerEditor(aceEditorRef.current.editor);
250+
}
248251
}
249252

250253
const title =

src/configs/editor.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,11 @@
2020
"type": "string",
2121
"enum": ["auto", "unix", "windows"],
2222
"default": "auto"
23+
},
24+
"linter": {
25+
"title": "Enable Linter",
26+
"type": "boolean",
27+
"default": false
2328
}
2429
}
2530
}

0 commit comments

Comments
 (0)