Skip to content

Commit 838f6a2

Browse files
jkzingyyx990803
authored andcommitted
feat(lint): default to lint tsx files (#1460)
1 parent c19bbff commit 838f6a2

File tree

1 file changed

+1
-1
lines changed
  • packages/@vue/cli-plugin-typescript/lib

1 file changed

+1
-1
lines changed

packages/@vue/cli-plugin-typescript/lib/tslint.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ module.exports = function lint (args = {}, api, silent) {
7575

7676
const files = args._ && args._.length
7777
? args._
78-
: ['src/**/*.ts', 'src/**/*.vue', 'tests/**/*.ts']
78+
: ['src/**/*.ts', 'src/**/*.vue', 'src/**/*.tsx', 'tests/**/*.ts', 'tests/**/*.tsx']
7979

8080
const stripTsExtension = str => str.replace(/\.vue\.ts\b/g, '.vue')
8181

0 commit comments

Comments
 (0)