Skip to content

Commit a0ea95b

Browse files
committed
Update Readme for ESLint 2.0.0
1 parent 4707f8a commit a0ea95b

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

README.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,8 @@ Add `plugins` section and specify ESLint-plugin-React as a plugin.
3333

3434
If it is not already the case you must also configure `ESLint` to support JSX.
3535

36+
With ESLint 1.x.x:
37+
3638
```json
3739
{
3840
"ecmaFeatures": {
@@ -41,6 +43,18 @@ If it is not already the case you must also configure `ESLint` to support JSX.
4143
}
4244
```
4345

46+
With ESLint 2.x.x:
47+
48+
```json
49+
{
50+
"parserOptions": {
51+
"ecmaFeatures": {
52+
"jsx": true
53+
}
54+
}
55+
}
56+
```
57+
4458
Finally, enable all of the rules that you would like to use.
4559

4660
```json

0 commit comments

Comments
 (0)