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?
Many CommonJS (non-TS) projects have a TS type definition file, like
index.d.tsand it currently has to be manually ignored because XO tries to lint it: https://travis-ci.org/sindresorhus/delay/jobs/418345973How 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.tsunless the user hastypescript-eslint-parser?