Skip to content

Commit 9a65ace

Browse files
authored
fix(cli-plugin-eslint): set parserOptions.ecmaVersion to 2017
This keeps eslint from complaining about newser syntax like async/await
1 parent c6e5eeb commit 9a65ace

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@ exports.config = api => {
1010
}
1111
if (!api.hasPlugin('typescript')) {
1212
config.parserOptions = {
13-
parser: 'babel-eslint'
13+
parser: 'babel-eslint',
14+
ecmaVersion: 2017,
1415
}
1516
}
1617
return config

0 commit comments

Comments
 (0)