Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork2.8k
Description
Best shown via a video:
https://user-images.githubusercontent.com/7462525/170336044-461ec681-59ec-4bfe-8800-e992bb1a8674.mov
It looks like the compiler options arealways the default options we set here:
typescript-eslint/packages/website/src/components/editor/useSandboxServices.ts
Lines 54 to 60 in519dd7b
constcompilerOptions:Monaco.languages.typescript.CompilerOptions={ | |
noResolve:true, | |
target:main.languages.typescript.ScriptTarget.ESNext, | |
jsx:props.jsx ?main.languages.typescript.JsxEmit.React :undefined, | |
lib:['es2021','esnext'], | |
module:main.languages.typescript.ModuleKind.ESNext, | |
}; |
Side note: we should addstrict: true
to the default because it's the best-practice!