From 838f6a2b662075fa48047f751b4510ec11da3fa9 Mon Sep 17 00:00:00 2001 From: JK Date: Tue, 5 Jun 2018 22:34:51 +0800 Subject: [PATCH] feat(lint): default to lint tsx files (#1460) --- packages/@vue/cli-plugin-typescript/lib/tslint.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/@vue/cli-plugin-typescript/lib/tslint.js b/packages/@vue/cli-plugin-typescript/lib/tslint.js index d9ba676197..366df7182b 100644 --- a/packages/@vue/cli-plugin-typescript/lib/tslint.js +++ b/packages/@vue/cli-plugin-typescript/lib/tslint.js @@ -75,7 +75,7 @@ module.exports = function lint (args = {}, api, silent) { const files = args._ && args._.length ? args._ - : ['src/**/*.ts', 'src/**/*.vue', 'tests/**/*.ts'] + : ['src/**/*.ts', 'src/**/*.vue', 'src/**/*.tsx', 'tests/**/*.ts', 'tests/**/*.tsx'] const stripTsExtension = str => str.replace(/\.vue\.ts\b/g, '.vue')