From 0b61cabf3a2a888b09ee53df871b739273fe8dce Mon Sep 17 00:00:00 2001 From: Joel Chen Date: Wed, 23 Dec 2020 13:22:10 -0800 Subject: [PATCH] [fix] add file extensions for eslint 7 command --- packages/xarc-app-dev/src/lib/tasks/eslint.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/xarc-app-dev/src/lib/tasks/eslint.ts b/packages/xarc-app-dev/src/lib/tasks/eslint.ts index a79a7c50e..ede1674d1 100644 --- a/packages/xarc-app-dev/src/lib/tasks/eslint.ts +++ b/packages/xarc-app-dev/src/lib/tasks/eslint.ts @@ -207,7 +207,7 @@ export function eslint7Tasks(xarcOptions: any, xclap: any) { }) .filter(x => x) .join(" "); - return xclap.exec(`eslint ${validDirs}`); + return xclap.exec(`eslint --ext .js,.ts,.jsx,.tsx ${validDirs}`); } } };