File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
packages/@vue/cli-plugin-eslint Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ module.exports = (api, options) => {
4
4
if ( options . lintOnSave ) {
5
5
const extensions = require ( './eslintOptions' ) . extensions ( api )
6
6
// Use loadModule to allow users to customize their ESLint dependency version.
7
- const { loadModule } = require ( '@vue/cli-shared-utils' )
7
+ const { resolveModule , loadModule } = require ( '@vue/cli-shared-utils' )
8
8
const cwd = api . getCwd ( )
9
9
const eslintPkg =
10
10
loadModule ( 'eslint/package.json' , cwd , true ) ||
@@ -48,6 +48,7 @@ module.exports = (api, options) => {
48
48
cacheIdentifier,
49
49
emitWarning : options . lintOnSave !== 'error' ,
50
50
emitError : options . lintOnSave === 'error' ,
51
+ eslintPath : resolveModule ( 'eslint' , cwd ) || require . resolve ( 'eslint' ) ,
51
52
formatter :
52
53
loadModule ( 'eslint/lib/formatters/codeframe' , cwd , true ) ||
53
54
require ( 'eslint/lib/formatters/codeframe' )
You can’t perform that action at this time.
0 commit comments