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