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 committed Dec 15, 2023
1 parent aa39557 commit 2481675
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 2481675

Please sign in to comment.