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

(cherry picked from commit 992fe07)
  • Loading branch information
sodatea committed Jul 4, 2019
1 parent f276598 commit 86830ac
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 @@ -55,7 +55,7 @@ module.exports = (api, options) => {
emitWarning: allWarnings,
// only emit errors in production mode.
emitError: allErrors,
eslintPath: resolveModule('eslint', cwd) || require.resolve('eslint'),
eslintPath: path.dirname(resolveModule('eslint/package.json', cwd)),
formatter:
loadModule('eslint/lib/formatters/codeframe', cwd, true) ||
require('eslint/lib/formatters/codeframe')
Expand Down

0 comments on commit 86830ac

Please sign in to comment.