File tree Expand file tree Collapse file tree 1 file changed +0
-34
lines changed Expand file tree Collapse file tree 1 file changed +0
-34
lines changed Original file line number Diff line number Diff line change @@ -480,40 +480,6 @@ You need to use [vue-eslint-parser] v9.0.0 or later.
480480
481481Previously you had to use the ` vue/setup-compiler-macros ` environment, this is no longer needed.
482482
483- #### Parsing error with Top Level ` await `
484-
485- ##### Using ESLint <= v7.x
486-
487- The parser ` espree ` that comes with ` ESLint ` v7.x doesn't understand the syntax of ES2022, so it can't parse the Top Level ` await ` either.
488- However, ` espree ` >= v8 can understand the syntax of ES2022 and parse the Top Level ` await ` .
489- You install ` espree ` >= v8 and specify ` "espree" ` and ES2022 in your configuration, the parser will be able to parse it.
490-
491- ``` js
492- module .exports = {
493- parser: ' vue-eslint-parser' ,
494- parserOptions: {
495- parser: ' espree' , // <-
496- ecmaVersion: 2022 , // <-
497- sourceType: ' module'
498- },
499- }
500- ```
501-
502- However, note that the AST generated by ` espree ` v8+ may not work well with some rules of ` ESLint ` v7.x.
503-
504- ##### Using ESLint >= v8.x
505-
506- You need to specify ` 2022 ` or ` "latest" ` for ` parserOptions.ecmaVersion ` .
507-
508- ``` js
509- module .exports = {
510- parserOptions: {
511- ecmaVersion: ' latest' ,
512- sourceType: ' module'
513- },
514- }
515- ```
516-
517483#### Other Problems
518484
519485Try searching for existing issues.
You can’t perform that action at this time.
0 commit comments