Skip to content

Commit

Permalink
feat: always lint .ts
Browse files Browse the repository at this point in the history
Closes #1065

I took the simpler approach here - an alternative would be to only add `.ts` when `--typescript` is set, but I figure there's probably no harm in always doing this?
  • Loading branch information
dominykas authored and Marsup committed Jan 15, 2024
1 parent c81638a commit 8ed0636
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/linter/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,10 @@ exports.lint = async function () {

if (!configuration.extensions) {
configuration.extensions = ['.js', '.cjs', '.mjs'];

if (configuration.typescript) {
configuration.extensions.push('.ts');
}
}

let results;
Expand Down

0 comments on commit 8ed0636

Please sign in to comment.