From 6fa39716015036c891aaff9cc3452b044baa0eda Mon Sep 17 00:00:00 2001 From: haoziqaq <357229046@qq.com> Date: Sat, 14 Aug 2021 23:22:24 +0800 Subject: [PATCH] fix(cli/eslint): add ext affects: @varlet/cli --- packages/varlet-cli/src/shared/constant.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/varlet-cli/src/shared/constant.ts b/packages/varlet-cli/src/shared/constant.ts index c0165b22659..9934309c0fa 100644 --- a/packages/varlet-cli/src/shared/constant.ts +++ b/packages/varlet-cli/src/shared/constant.ts @@ -9,7 +9,7 @@ export const ES_DIR = resolve(CWD, 'es') export const UMD_DIR = resolve(CWD, 'umd') export const TYPES_DIR = resolve(CWD, 'types') export const ROOT_DOCS_DIR = resolve(CWD, 'docs') -export const ESLINT_EXTENSIONS = ['.vue', '.ts', '.js', '.mjs'] +export const ESLINT_EXTENSIONS = ['.vue', '.ts', '.js', '.mjs', '.tsx', '.jsx'] export const WEBPACK_RESOLVE_EXTENSIONS = ['.js', '.jsx', '.vue', '.ts', '.tsx', '.css', '.less'] export const SCRIPTS_EXTENSIONS = ['.tsx', '.ts', '.jsx', '.js'] export const PUBLIC_DIR_INDEXES = ['index.vue', 'index.tsx', 'index.ts', 'index.jsx', 'index.js']