Skip to content

Commit

Permalink
fix: fix eslint path resolution in vue serve (#4246)
Browse files Browse the repository at this point in the history
fixes #4237
  • Loading branch information
sodatea committed Jul 6, 2019
1 parent 8b8bb99 commit 0ba505c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/@vue/cli-plugin-eslint/index.js
Expand Up @@ -53,7 +53,10 @@ module.exports = (api, options) => {
emitWarning: allWarnings,
// only emit errors in production mode.
emitError: allErrors,
eslintPath: path.dirname(resolveModule('eslint/package.json', cwd)),
eslintPath: path.dirname(
resolveModule('eslint/package.json', cwd) ||
resolveModule('eslint/package.json', __dirname)
),
formatter: loadModule('eslint/lib/formatters/codeframe', cwd, true)
})
})
Expand Down

0 comments on commit 0ba505c

Please sign in to comment.