From 050978005ad089d9b3b5d8895b25ea1175d75db2 Mon Sep 17 00:00:00 2001 From: Justin Beckwith Date: Sun, 29 Mar 2020 22:47:13 -0700 Subject: [PATCH] fix: include *.tsx and *.jsx in default fix command (#473) --- src/cli.ts | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/cli.ts b/src/cli.ts index 7c5208fa..ac6419cd 100644 --- a/src/cli.ts +++ b/src/cli.ts @@ -111,7 +111,13 @@ async function run(verb: string, files: string[]): Promise { 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) {