Skip to content

Commit eb215ff

Browse files
committed
update doc
1 parent 6458734 commit eb215ff

File tree

1 file changed

+0
-34
lines changed

1 file changed

+0
-34
lines changed

docs/user-guide/index.md

Lines changed: 0 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -480,40 +480,6 @@ You need to use [vue-eslint-parser] v9.0.0 or later.
480480

481481
Previously 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

519485
Try searching for existing issues.

0 commit comments

Comments
 (0)