Skip to content

Commit

Permalink
feat(lint): default to lint tsx files (#1460)
Browse files Browse the repository at this point in the history
  • Loading branch information
jkzing authored and yyx990803 committed Jun 5, 2018
1 parent c19bbff commit 838f6a2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/@vue/cli-plugin-typescript/lib/tslint.js
Original file line number Diff line number Diff line change
Expand Up @@ -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')

Expand Down

0 comments on commit 838f6a2

Please sign in to comment.