Skip to content

Commit 59de41f

Browse files
committed
Update Readme
1 parent f056da2 commit 59de41f

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

README.md

+5-7
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,7 @@ React specific linting rules for ESLint
99

1010
Install [ESLint](https://www.github.com/eslint/eslint) either locally or globally.
1111

12-
npm install eslint@es6jsx
13-
14-
ESLint-plugin-React requires `ESLint` with JSX support which is only available on the `es6jsx` branch for now.
12+
npm install eslint
1513

1614
If you installed `ESLint` globally, you have to install React plugin globally too. Otherwise, install it locally.
1715

@@ -29,12 +27,11 @@ Add `plugins` section and specify ESLint-plugin-React as a plugin.
2927
}
3028
```
3129

32-
If it is not already the case you must also configure `ESLint` to support ECMAScript 6 and JSX.
30+
If it is not already the case you must also configure `ESLint` to support JSX.
3331

3432
```json
3533
{
36-
"settings": {
37-
"ecmascript": 6,
34+
"ecmaFeatures": {
3835
"jsx": true
3936
}
4037
}
@@ -66,7 +63,8 @@ Finally, enable all of the rules that you would like to use.
6663

6764
* no-deprecated: Prevent usage of deprecated methods ([React 0.12 Updated API](http://facebook.github.io/react/blog/2014/10/28/react-v0.12.html#new-terminology-amp-updated-apis))
6865
* no-classic: Prevent usage of "classic" methods ([#2700](https://github.com/facebook/react/pull/2700))
69-
* [Implement rules from David Chang's React Style Guide](https://reactjsnews.com/react-style-guide-patterns-i-like)
66+
* [Implement relevant rules from David Chang's React Style Guide](https://reactjsnews.com/react-style-guide-patterns-i-like)
67+
* [Implement relevant rules from John Cobb's best practices and conventions](http://web-design-weekly.com/2015/01/29/opinionated-guide-react-js-best-practices-conventions/)
7068

7169
[Any rule idea is welcome !](https://github.com/yannickcr/eslint-plugin-react/issues)
7270

0 commit comments

Comments
 (0)