Skip to content

Commit 52b4a13

Browse files
authored
update readme [skip ci]
1 parent 0e5aca3 commit 52b4a13

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

README.md

+8-8
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,11 @@
33
**babel-eslint** allows you to lint **ALL** valid Babel code with the fantastic
44
[ESLint](https://github.com/eslint/eslint).
55

6-
#### Note: You don't need to use babel-eslint if you are using ES2015 (ES6), ES2016 (ES7) or ES2017 (ES8). ESLint actually supports ES2015/ES2016/ES2017, JSX, and object rest/spread by default now.
6+
### Why Use babel-eslint
77

8-
##### At the moment, you'll need it if you use stuff like class properties, decorators, types.
8+
You only need to use babel-eslint if you are using types (Flow) or experimental features not supported in ESLint itself yet. Otherwise try the default parser (you don't have to use it just because you are using Babel).
9+
10+
---
911

1012
> If there is an issue, first check if it can be reproduced with the regular parser or with the latest versions of `eslint` and `babel-eslint`!
1113
@@ -43,21 +45,19 @@ It just needs to export a `parse` method that takes in a string of code and outp
4345

4446
## Usage
4547

48+
> ESLint 1.x | Use <= 5.x
49+
50+
> ESLint 2.x | Use >= 6.x
51+
4652
### Supported ESLint versions
4753

4854
ESLint | babel-eslint
4955
------------ | -------------
50-
1.x | <= 5.x
51-
2.x | >= 6.x
5256
3.x | >= 6.x
5357

5458
### Install
5559

5660
```sh
57-
$ npm install [email protected] babel-eslint@5 --save-dev
58-
59-
$ npm install [email protected] babel-eslint@6 --save-dev
60-
6161
$ npm install [email protected] babel-eslint@6 --save-dev
6262
```
6363

0 commit comments

Comments
 (0)