Skip to content

Commit

Permalink
fix: eliminate the error that occurs when enabling eslint-plugin-mark…
Browse files Browse the repository at this point in the history
…down in the project
  • Loading branch information
liby committed Jul 25, 2023
1 parent d4f13bd commit a2763e7
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions packages/create-vite/template-react-ts/README.md
Original file line number Diff line number Diff line change
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 a2763e7

Please sign in to comment.