Skip to content

Commit

Permalink
fix(template): eliminate the error that occurs when enabling eslint-p…
Browse files Browse the repository at this point in the history
…lugin-markdown (#13942)
  • Loading branch information
liby committed Jul 25, 2023
1 parent aeef670 commit 6251a66
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions packages/create-vite/template-react-ts/README.md
Expand Up @@ -14,12 +14,15 @@ If you are developing a production application, we recommend updating the config
- Configure the top-level `parserOptions` property like this:

```js
parserOptions: {
export default {
// other rules...
parserOptions: {
ecmaVersion: 'latest',
sourceType: 'module',
project: ['./tsconfig.json', './tsconfig.node.json'],
tsconfigRootDir: __dirname,
},
},
}
```

- Replace `plugin:@typescript-eslint/recommended` to `plugin:@typescript-eslint/recommended-type-checked` or `plugin:@typescript-eslint/strict-type-checked`
Expand Down

0 comments on commit 6251a66

Please sign in to comment.