Skip to content

XO should not lint type definition files in a non-TS project #348

@sindresorhus

Description

@sindresorhus

Many CommonJS (non-TS) projects have a TS type definition file, like index.d.ts and it currently has to be manually ignored because XO tries to lint it: https://travis-ci.org/sindresorhus/delay/jobs/418345973

How should we handle this? I don't think users should be forced to manually ignore type definition files.

We could ignore files ending in .d.ts unless the user has typescript-eslint-parser?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions