Skip to content

Repo: use default TypeScript compilerOptions.lib when testing rules #9648

Open
@abrahamguo

Description

@abrahamguo

Suggestion

Right now, in our rule tests for eslint-plugin, we use a non-default value for the compilerOptions.lib option, that, in particular, removes DOM.

This is different from the compilerOptions.lib used on the playground, which does include DOM. Because of this mismatch, the "Invalid" snapshots from docs-eslint-output-snapshots for two rules are missing ESLint errors that do show up on the playground:

Metadata

Metadata

Assignees

No one assigned

    Labels

    accepting prsGo ahead, send a pull request that resolves this issuebugSomething isn't workingwebsite: playground

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions