From e64e0c0f34c34505fe9415e5951d4cf35a7e58c3 Mon Sep 17 00:00:00 2001 From: Justin Beckwith Date: Sun, 29 Mar 2020 09:31:13 -0700 Subject: [PATCH 1/2] fix: include *.tsx and *.jsx in default fix command --- src/cli.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cli.ts b/src/cli.ts index 7c5208fa..5b624834 100644 --- a/src/cli.ts +++ b/src/cli.ts @@ -111,7 +111,7 @@ 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'); } switch (verb) { From d6b9cbebeddb767d22506d914f15c6294c45f431 Mon Sep 17 00:00:00 2001 From: Justin Beckwith Date: Sun, 29 Mar 2020 09:41:59 -0700 Subject: [PATCH 2/2] fixy --- src/cli.ts | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/cli.ts b/src/cli.ts index 5b624834..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', '**/*.tsx', '**/*.jsx'); + flags.push( + '**/*.ts', + '**/*.js', + '**/*.tsx', + '**/*.jsx', + '--no-error-on-unmatched-pattern' + ); } switch (verb) {