Skip to content

Commit c6b7190

Browse files
committed
docs: fix prettier example
1 parent 21973d2 commit c6b7190

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

README.md

+4-3
Original file line numberDiff line numberDiff line change
@@ -49,19 +49,20 @@ See the [originial documentation](https://github.com/typescript-eslint/typescrip
4949

5050
Some of its rules, however, might conflict with `prettier`.
5151
So when used alongside other sharable configs, this config should be placed after all other configs except for the `prettier` ones in the `extends` array.
52+
And make sure to also include the `@typescript-eslint` sub ruleset of the `prettier` config.
5253

5354
An example `.eslintrc.js`:
5455

5556
```js
5657
module.exports = {
58+
5759
extends: [
5860
'plugin:vue/essential',
5961
'@vue/airbnb',
6062
'@vue/typescript/recommended',
6163

62-
'prettier',
63-
'prettier/vue',
64-
'prettier/@typescript-eslint'
64+
'@vue/prettier',
65+
'@vue/prettier/@typescript-eslint'
6566
]
6667
}
6768
```

0 commit comments

Comments
 (0)