diff --git a/docs/user-guide/README.md b/docs/user-guide/README.md index c964cfbc5..b8821c629 100644 --- a/docs/user-guide/README.md +++ b/docs/user-guide/README.md @@ -359,20 +359,22 @@ module.exports = { ##### Using ESLint <= v7.x -The parser `espree` that comes with `ESLint` doesn't understand the syntax of ES2022, so it can't parse Top Level `await` either. -However, the `vue-eslint-parser` used by `eslint-plugin-vue` can use `espree` v8, which understands ES2022 by configuration. +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. +However, `espree` v8+ can understand the syntax of ES2022 and parse the Top Level `await`. +You install `espree` v8+ and specify `"espree"` and ES2022 in your configuration, the parser will be able to parse it. ```js module.exports = { parser: 'vue-eslint-parser', parserOptions: { - ecmaVersion: 2022, // If you specify 2022, espree >= v8.x will be used automatically. + parser: 'espree', // <- + ecmaVersion: 2022, // <- sourceType: 'module' }, } ``` -However, note that the AST generated by `espree` v8 may not work well with some rules of `ESLint` v7. +However, note that the AST generated by `espree` v8+ may not work well with some rules of `ESLint` v7.x.