Skip to content

Bug(website): compiler options are not passed to the lint run #5079

@bradzacher

Description

@bradzacher

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:

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

No one assigned

    Labels

    accepting prsGo ahead, send a pull request that resolves this issuebugSomething isn't workingpackage: websiteIssues related to the @typescript-eslint website

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions