Skip to content

Commit

Permalink
docs: FAQ: update prettier config for v8 (#3103)
Browse files Browse the repository at this point in the history
  • Loading branch information
fuxingloh committed Feb 24, 2021
1 parent 1cf9243 commit 5e2a993
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion docs/getting-started/linting/README.md
Expand Up @@ -121,6 +121,8 @@ If you use [`prettier`](https://www.npmjs.com/package/prettier), there is also a

Using this config is as simple as adding it to the end of your `extends`:

> Note: [Since version `8.0.0` of `eslint-config-prettier`](https://github.com/prettier/eslint-config-prettier/blob/main/CHANGELOG.md#version-800-2021-02-21), all you need to extend is `'prettier'`. That includes all plugins. Otherwise for `<8.0.0`, you need include `'prettier/@typescript-eslint'`.
```diff
module.exports = {
root: true,
Expand All @@ -132,7 +134,6 @@ Using this config is as simple as adding it to the end of your `extends`:
'eslint:recommended',
'plugin:@typescript-eslint/recommended',
+ 'prettier',
+ 'prettier/@typescript-eslint',
],
};
```
Expand Down

0 comments on commit 5e2a993

Please sign in to comment.