mirror of
https://github.com/vuejs/vue-cli.git
synced 2026-01-25 08:38:57 -06:00
feat(lint): default to lint tsx files (#1460)
This commit is contained in:
@@ -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')
|
||||
|
||||
|
||||
Reference in New Issue
Block a user