We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
yyx990803
Learn more about funding links in repositories.
Report abuse
1 parent 38aa8d9 commit f819f51Copy full SHA for f819f51
packages/@vue/cli-plugin-eslint/lint.js
@@ -36,7 +36,7 @@ module.exports = function lint (args = {}, api) {
36
const noFixWarningsPredicate = (lintResult) => lintResult.severity === 2
37
config.fix = config.fix && (noFixWarnings ? noFixWarningsPredicate : true)
38
39
- if (!fs.existsSync(api.resolve('.eslintignore'))) {
+ if (!fs.existsSync(api.resolve('.eslintignore')) && !config.ignorePattern) {
40
// .eslintrc.js files (ignored by default)
41
// However, we need to lint & fix them so as to make the default generated project's
42
// code style consistent with user's selected eslint config.
0 commit comments