-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Labels
accepting prsGo ahead, send a pull request that resolves this issueGo ahead, send a pull request that resolves this issuebugSomething isn't workingSomething isn't workingpackage: websiteIssues related to the @typescript-eslint websiteIssues related to the @typescript-eslint website
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 are always the default options we set here:
typescript-eslint/packages/website/src/components/editor/useSandboxServices.ts
Lines 54 to 60 in 519dd7b
const compilerOptions: 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 add strict: true
to the default because it's the best-practice!
Metadata
Metadata
Assignees
Labels
accepting prsGo ahead, send a pull request that resolves this issueGo ahead, send a pull request that resolves this issuebugSomething isn't workingSomething isn't workingpackage: websiteIssues related to the @typescript-eslint websiteIssues related to the @typescript-eslint website