Skip to content

Commit

Permalink
Update Readme for ESLint 2.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
yannickcr committed Dec 20, 2015
1 parent 4707f8a commit a0ea95b
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ Add `plugins` section and specify ESLint-plugin-React as a plugin.

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

With ESLint 1.x.x:

```json
{
"ecmaFeatures": {
Expand All @@ -41,6 +43,18 @@ If it is not already the case you must also configure `ESLint` to support JSX.
}
```

With ESLint 2.x.x:

```json
{
"parserOptions": {
"ecmaFeatures": {
"jsx": true
}
}
}
```

Finally, enable all of the rules that you would like to use.

```json
Expand Down

0 comments on commit a0ea95b

Please sign in to comment.