Skip to content

Commit 7d4ad88

Browse files
author
Yannick Croissant
committed
Update exported configurations documentation in Readme
1 parent 7f81819 commit 7d4ad88

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

README.md

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -151,9 +151,6 @@ To enable this configuration use the `extends` property in your `.eslintrc` conf
151151

152152
```js
153153
{
154-
"plugins": [
155-
"react"
156-
],
157154
"extends": ["eslint:recommended", "plugin:react/recommended"]
158155
}
159156
```
@@ -177,8 +174,6 @@ The rules enabled in this configuration are:
177174
* [react/react-in-jsx-scope](docs/rules/react-in-jsx-scope.md)
178175
* [react/require-render-return](docs/rules/require-render-return.md)
179176

180-
**Note**: This configuration will also enable JSX in [parser options](http://eslint.org/docs/user-guide/configuring#specifying-parser-options).
181-
182177
## All
183178

184179
This plugin also exports an `all` configuration that includes every available rule.
@@ -193,6 +188,8 @@ This pairs well with the `eslint:all` rule.
193188
}
194189
```
195190

191+
**Note**: These configurations will import `eslint-plugin-react` and enable JSX in [parser options](http://eslint.org/docs/user-guide/configuring#specifying-parser-options).
192+
196193
# License
197194

198195
ESLint-plugin-React is licensed under the [MIT License](http://www.opensource.org/licenses/mit-license.php).

0 commit comments

Comments
 (0)