feat(lint): default to lint tsx files (#1460)

This commit is contained in:
JK
2018-06-05 22:34:51 +08:00
committed by Evan You
parent c19bbff79e
commit 838f6a2b66

View File

@@ -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')