Skip to content

Commit 2b104b4

Browse files
LinusBorghaoqunjiang
authored andcommitted
fix(cli-service-global): fix eslint-loader config (close #2654) (#2655)
By including the parserOptions as we do when we create an actual eslint config for normal projects, we get ESnext support for eslint during `vue serve`
1 parent 20dd09d commit 2b104b4

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

packages/@vue/cli-service-global/lib/globalConfigPlugin.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,10 @@ module.exports = function createConfigPlugin (context, entry, asLib) {
107107
extends: [
108108
'plugin:vue/essential',
109109
'eslint:recommended'
110-
]
110+
],
111+
parserOptions: {
112+
parser: 'babel-eslint'
113+
}
111114
}
112115
}))
113116

0 commit comments

Comments
 (0)