Skip to content

Commit f819f51

Browse files
committedFeb 17, 2019
fix: respect command line --ignore-pattern option
1 parent 38aa8d9 commit f819f51

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ module.exports = function lint (args = {}, api) {
3636
const noFixWarningsPredicate = (lintResult) => lintResult.severity === 2
3737
config.fix = config.fix && (noFixWarnings ? noFixWarningsPredicate : true)
3838

39-
if (!fs.existsSync(api.resolve('.eslintignore'))) {
39+
if (!fs.existsSync(api.resolve('.eslintignore')) && !config.ignorePattern) {
4040
// .eslintrc.js files (ignored by default)
4141
// However, we need to lint & fix them so as to make the default generated project's
4242
// code style consistent with user's selected eslint config.

0 commit comments

Comments
 (0)