8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
vue serve
1 parent 8b8bb99 commit 0ba505cCopy full SHA for 0ba505c
packages/@vue/cli-plugin-eslint/index.js
@@ -53,7 +53,10 @@ module.exports = (api, options) => {
53
emitWarning: allWarnings,
54
// only emit errors in production mode.
55
emitError: allErrors,
56
- eslintPath: path.dirname(resolveModule('eslint/package.json', cwd)),
+ eslintPath: path.dirname(
57
+ resolveModule('eslint/package.json', cwd) ||
58
+ resolveModule('eslint/package.json', __dirname)
59
+ ),
60
formatter: loadModule('eslint/lib/formatters/codeframe', cwd, true)
61
})
62
0 commit comments