Skip to content

Commit

Permalink
chore: handle transpiled tsUtils not being a rule
Browse files Browse the repository at this point in the history
  • Loading branch information
SimenB committed Jul 21, 2019
1 parent 6fadfab commit bc251f7
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,11 @@ function importDefault(moduleName) {

const rules = readdirSync(join(__dirname, 'rules'))
.filter(
rule => rule !== '__tests__' && rule !== 'util.js' && rule !== 'tsUtils.ts',
rule =>
rule !== '__tests__' &&
rule !== 'util.js' &&
rule !== 'tsUtils.ts' &&
rule !== 'tsUtils.js',
)
.map(rule =>
rule.endsWith('js') ? basename(rule, '.js') : basename(rule, '.ts'),
Expand Down

0 comments on commit bc251f7

Please sign in to comment.