8000 fix: use module directory instead of entry file for `eslintPath` (#4233) · sarvex/vue-cli@992fe07 · GitHub
[go: up one dir, main page]

Skip to content

Commit 992fe07

Browse files
authored
fix: use module directory instead of entry file for eslintPath (vuejs#4233)
fixes vuejs#4231
1 parent 63824af commit 992fe07

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/@vue/cli-plugin-eslint/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ module.exports = (api, options) => {
5353
emitWarning: allWarnings,
5454
// only emit errors in production mode.
5555
emitError: allErrors,
56- eslintPath: resolveModule('eslint', cwd),
56+
eslintPath: path.dirname(resolveModule('eslint/package.json', cwd)),
5757
formatter: loadModule('eslint/lib/formatters/codeframe', cwd, true)
5858
})
5959
})

0 commit comments

Comments
 (0)
0