Skip to content

Commit 5e2a993

Browse files
authored
docs: FAQ: update prettier config for v8 (typescript-eslint#3103)
1 parent 1cf9243 commit 5e2a993

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

docs/getting-started/linting/README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,8 @@ If you use [`prettier`](https://www.npmjs.com/package/prettier), there is also a
121121

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

124+
> 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'`.
125+
124126
```diff
125127
module.exports = {
126128
root: true,
@@ -132,7 +134,6 @@ Using this config is as simple as adding it to the end of your `extends`:
132134
'eslint:recommended',
133135
'plugin:@typescript-eslint/recommended',
134136
+ 'prettier',
135-
+ 'prettier/@typescript-eslint',
136137
],
137138
};
138139
```

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy