Skip to content

Commit adc0f23

Browse files
committed
fix(eslint): set ecmaVersion to latest to support top-level await
Fixes vuejs#139
1 parent 1ecb732 commit adc0f23

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

utils/renderEslint.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,10 @@ interface ESLintConfig extends Linter.Config {
2020
}
2121
const config: ESLintConfig = {
2222
root: true,
23-
extends: ['plugin:vue/vue3-essential']
23+
extends: ['plugin:vue/vue3-essential'],
24+
parserOptions: {
25+
ecmaVersion: 'latest'
26+
}
2427
}
2528

2629
function configureEslint({ language, styleGuide, needsPrettier, needsCypress, needsCypressCT }) {

0 commit comments

Comments
 (0)