Skip to content

Commit 7d5d3dd

Browse files
authored
Remove instructions on separate eslint-config-prettier configs (#388)
1 parent 875eca4 commit 7d5d3dd

File tree

1 file changed

+1
-15
lines changed

1 file changed

+1
-15
lines changed

README.md

Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -76,20 +76,6 @@ This plugin ships with a `plugin:prettier/recommended` config that sets up both
7676

7777
You can then set Prettier's own options inside a `.prettierrc` file.
7878

79-
3. Some ESLint plugins (such as [eslint-plugin-react](https://github.com/yannickcr/eslint-plugin-react)) also contain rules that conflict with Prettier. Add extra exclusions for the plugins you use like so:
80-
81-
```json
82-
{
83-
"extends": [
84-
"plugin:prettier/recommended",
85-
"prettier/flowtype",
86-
"prettier/react"
87-
]
88-
}
89-
```
90-
91-
For the list of every available exclusion rule set, please see the [readme of eslint-config-prettier](https://github.com/prettier/eslint-config-prettier/blob/master/README.md).
92-
9379
Exactly what does `plugin:prettier/recommended` do? Well, this is what it expands to:
9480

9581
```json
@@ -104,7 +90,7 @@ Exactly what does `plugin:prettier/recommended` do? Well, this is what it expand
10490
}
10591
```
10692

107-
- `"extends": ["prettier"]` enables the main config from `eslint-config-prettier`, which turns off some ESLint core rules that conflict with Prettier.
93+
- `"extends": ["prettier"]` enables the config from `eslint-config-prettier`, which turns off some ESLint rules that conflict with Prettier.
10894
- `"plugins": ["prettier"]` registers this plugin.
10995
- `"prettier/prettier": "error"` turns on the rule provided by this plugin, which runs Prettier from within ESLint.
11096
- `"arrow-body-style": "off"` and `"prefer-arrow-callback": "off"` turns off two ESLint core rules that unfortunately are problematic with this plugin – see the next section.

0 commit comments

Comments
 (0)