Skip to content

Commit 81dc30d

Browse files
ota-meshiFloEdelmann
authored andcommitted
update doc
1 parent 26ce3aa commit 81dc30d

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
@@ -479,40 +479,6 @@ You need to use [vue-eslint-parser] v9.0.0 or later.
479479

480480
Previously you had to use the `vue/setup-compiler-macros` environment, this is no longer needed.
481481

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-
516482
#### Other Problems
517483

518484
Try searching for existing issues.

0 commit comments

Comments
 (0)