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.
eslintPath
1 parent f276598 commit 86830acCopy full SHA for 86830ac
packages/@vue/cli-plugin-eslint/index.js
@@ -55,7 +55,7 @@ module.exports = (api, options) => {
55
emitWarning: allWarnings,
56
// only emit errors in production mode.
57
emitError: allErrors,
58
- eslintPath: resolveModule('eslint', cwd) || require.resolve('eslint'),
+ eslintPath: path.dirname(resolveModule('eslint/package.json', cwd)),
59
formatter:
60
loadModule('eslint/lib/formatters/codeframe', cwd, true) ||
61
require('eslint/lib/formatters/codeframe')
0 commit comments