Skip to content

Commit

Permalink
fix: use module directory instead of entry file for eslintPath (#4233)
Browse files Browse the repository at this point in the history
fixes #4231
  • Loading branch information
sodatea committed Jul 4, 2019
1 parent 63824af commit 992fe07
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/@vue/cli-plugin-eslint/index.js
Expand Up @@ -53,7 +53,7 @@ module.exports = (api, options) => {
emitWarning: allWarnings,
// only emit errors in production mode.
emitError: allErrors,
eslintPath: resolveModule('eslint', cwd),
eslintPath: path.dirname(resolveModule('eslint/package.json', cwd)),
formatter: loadModule('eslint/lib/formatters/codeframe', cwd, true)
})
})
Expand Down

0 comments on commit 992fe07

Please sign in to comment.