You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+1-15Lines changed: 1 addition & 15 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -76,20 +76,6 @@ This plugin ships with a `plugin:prettier/recommended` config that sets up both
76
76
77
77
You can then set Prettier's own options inside a `.prettierrc` file.
78
78
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
-
93
79
Exactly what does `plugin:prettier/recommended` do? Well, this is what it expands to:
94
80
95
81
```json
@@ -104,7 +90,7 @@ Exactly what does `plugin:prettier/recommended` do? Well, this is what it expand
104
90
}
105
91
```
106
92
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.
108
94
-`"plugins": ["prettier"]` registers this plugin.
109
95
-`"prettier/prettier": "error"` turns on the rule provided by this plugin, which runs Prettier from within ESLint.
110
96
-`"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