Skip to content

Commit 6251a66

Browse files
authored
fix(template): eliminate the error that occurs when enabling eslint-plugin-markdown (#13942)
1 parent aeef670 commit 6251a66

File tree

1 file changed

+5
-2
lines changed
  • packages/create-vite/template-react-ts

1 file changed

+5
-2
lines changed

packages/create-vite/template-react-ts/README.md

+5-2
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,15 @@ If you are developing a production application, we recommend updating the config
1414
- Configure the top-level `parserOptions` property like this:
1515

1616
```js
17-
parserOptions: {
17+
export default {
18+
// other rules...
19+
parserOptions: {
1820
ecmaVersion: 'latest',
1921
sourceType: 'module',
2022
project: ['./tsconfig.json', './tsconfig.node.json'],
2123
tsconfigRootDir: __dirname,
22-
},
24+
},
25+
}
2326
```
2427

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

0 commit comments

Comments
 (0)