Skip to content

Commit 8189f20

Browse files
committed
fix(eslint): lint command should also lint config files starting with dot
close #2228
1 parent 1892bcc commit 8189f20

File tree

1 file changed

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

1 file changed

+1
-1
lines changed

packages/@vue/cli-plugin-eslint/lint.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ module.exports = function lint (args = {}, api) {
2121
const { CLIEngine } = require('eslint')
2222
const { log, done, exit, chalk } = require('@vue/cli-shared-utils')
2323

24-
const files = args._ && args._.length ? args._ : ['src', 'tests', '*.js']
24+
const files = args._ && args._.length ? args._ : ['src', 'tests', '*.js', '.*.js']
2525
const extensions = require('./eslintOptions').extensions(api)
2626
const argsConfig = normalizeConfig(args)
2727
const config = Object.assign({

0 commit comments

Comments
 (0)