Skip to content

Commit

Permalink
fix: ignore import error
Browse files Browse the repository at this point in the history
  • Loading branch information
magic-akari committed Sep 12, 2023
1 parent c9b92f8 commit 9a3348d
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ loader.init().then((monaco) => {
],
comments: {
blockComment: ["span: Span {", "},"],
}
},
});

monaco.languages.registerCodeLensProvider("swc-ast", {
Expand Down Expand Up @@ -69,8 +69,12 @@ loader.init().then((monaco) => {

monaco.languages.typescript.typescriptDefaults.setCompilerOptions({
target: monaco.languages.typescript.ScriptTarget.ESNext,
module: monaco.languages.typescript.ModuleKind.ESNext,
jsx: monaco.languages.typescript.JsxEmit.Preserve,
lib: ["esnext", "dom", "dom.iterable"],
});

monaco.languages.typescript.typescriptDefaults.setDiagnosticsOptions({
diagnosticCodesToIgnore: [2792],
});

monaco.editor.addKeybindingRule({
Expand Down

0 comments on commit 9a3348d

Please sign in to comment.