Skip to content

Commit

Permalink
disable type errors
Browse files Browse the repository at this point in the history
  • Loading branch information
magurotuna committed May 5, 2024
1 parent d09e137 commit c531029
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions www/islands/MonacoEditor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,13 @@ export default function MonacoEditor(props: Props) {

useEffect(() => {
loader.init().then((monaco) => {
monaco.languages.typescript.typescriptDefaults.setDiagnosticsOptions({
noSemanticValidation: true,
noSyntaxValidation: false,
});

monaco.editor.setTheme(props.isDarkMode ? "vs-dark" : "vs-light");

const editor = monaco.editor.create(editorRef.current!, {
value: props.defaultValue,
language: props.language,
Expand Down

0 comments on commit c531029

Please sign in to comment.