Skip to content

Commit

Permalink
fix: include *.tsx and *.jsx in default fix command (#473)
Browse files Browse the repository at this point in the history
  • Loading branch information
JustinBeckwith authored Mar 30, 2020
1 parent eea398d commit 0509780
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/cli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,13 @@ async function run(verb: string, files: string[]): Promise<boolean> {

const flags = Object.assign([], files);
if (flags.length === 0) {
flags.push('**/*.ts', '**/*.js');
flags.push(
'**/*.ts',
'**/*.js',
'**/*.tsx',
'**/*.jsx',
'--no-error-on-unmatched-pattern'
);
}

switch (verb) {
Expand Down

0 comments on commit 0509780

Please sign in to comment.