Skip to content

Commit

Permalink
fix: An issue where many TypeScript errors would appear in scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
KallynGowdy committed Mar 20, 2024
1 parent 9bc7e1d commit 8f678bb
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/aux-server/aux-web/shared/MonacoHelpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -131,10 +131,15 @@ export function setup() {
noSemanticValidation: true,
noSyntaxValidation: false,
});
monaco.languages.typescript.typescriptDefaults.setDiagnosticsOptions({
noSemanticValidation: true,
noSyntaxValidation: false,
});

// Set compiler options
monaco.languages.typescript.javascriptDefaults.setCompilerOptions({
target: monaco.languages.typescript.ScriptTarget.ES2015,
target: monaco.languages.typescript.ScriptTarget.ESNext,
module: monaco.languages.typescript.ModuleKind.ESNext,

// Auto-import the given libraries
lib: ['lib.es2015.d.ts', 'file:///AuxDefinitions.d.ts'],
Expand All @@ -147,7 +152,8 @@ export function setup() {
jsx: monaco.languages.typescript.JsxEmit.Preserve,
});
monaco.languages.typescript.typescriptDefaults.setCompilerOptions({
target: monaco.languages.typescript.ScriptTarget.ES2015,
target: monaco.languages.typescript.ScriptTarget.ESNext,
module: monaco.languages.typescript.ModuleKind.ESNext,

// Auto-import the given libraries
lib: ['lib.es2015.d.ts', 'file:///AuxDefinitions.d.ts'],
Expand Down

0 comments on commit 8f678bb

Please sign in to comment.