Skip to content

Commit

Permalink
Update ESLint to v5
Browse files Browse the repository at this point in the history
  • Loading branch information
MacRusher committed Aug 14, 2018
1 parent 448d5c0 commit 7f24395
Show file tree
Hide file tree
Showing 5 changed files with 790 additions and 893 deletions.
13 changes: 13 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,16 @@
### 4.0.0

Major version bump due to ESLint major update.

- Updated dependencies:
- [email protected]
- [email protected]
- [email protected]
- [email protected]
- [email protected]
- [email protected]
- [email protected]

### 3.1.1

- Updated dependencies:
Expand Down
35 changes: 27 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

## Install

#### For ESLint 4.x
#### For ESLint 5.x

To install simply add this config (along with ESLint and required dependencies) to your project dev-dependencies:

Expand All @@ -40,29 +40,48 @@ Ready to use one-liner (for `default` config):
npm i -D babel-eslint eslint eslint-config-vazco eslint-plugin-babel eslint-plugin-react eslint-plugin-vazco
```

Ready to use one-liner (for `prettier` config):
Ready to use two-liner (for `prettier` config), requires npm 5+:

```
npm i -D babel-eslint eslint eslint-config-prettier eslint-config-vazco eslint-plugin-babel eslint-plugin-prettier eslint-plugin-react eslint-plugin-vazco prettier
npm i -D eslint-config-vazco
npx install-peerdeps --dev eslint-config-vazco
```


<details>
<summary><strong>Previous ESLint versions</strong></summary>

##### ESLint 2.x
If you want to use this config with ESLint 2.x (required e.g. for Node 0.10) you can install config for version 1.x:
#### For ESLint 4.x
We recommend to upgrade to ESLint 5, but if you must you can use older dependencies and config from 3.x branch:

To install simply add this config (along with ESLint and required dependencies) to your project dev-dependencies:

Ready to use one-liner (for `default` config):

```
npm i -D eslint@2 eslint-config-vazco@1 babel-eslint@6 eslint-plugin-babel@3 eslint-plugin-react@5
npm i -D babel-eslint eslint eslint-config-vazco@3 eslint-plugin-babel eslint-plugin-react eslint-plugin-vazco
```

Ready to use two-liner (for `prettier` config), requires npm 5+:

```
npm i -D eslint-config-vazco@3
npx install-peerdeps --dev eslint-config-vazco@3
```

##### ESLint 3.x
We strongly recommend to upgrade to ESLint 4, but if you must you can use older dependencies and config from 2.x branch:
We strongly recommend to upgrade to ESLint 5, but if you must you can use older dependencies and config from 2.x branch:

```
npm i -D eslint@3 babel-eslint@7 eslint-config-vazco@2 eslint-plugin-babel@4 eslint-plugin-react@6 eslint-plugin-vazco@1
```

##### ESLint 2.x
If you want to use this config with ESLint 2.x (required e.g. for Node 0.10) you can install config for version 1.x:

```
npm i -D eslint@2 eslint-config-vazco@1 babel-eslint@6 eslint-plugin-babel@3 eslint-plugin-react@5
```

</details>

## Usage
Expand Down
2 changes: 1 addition & 1 deletion configs/default.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ env:
node: true

parserOptions:
ecmaVersion: 7
ecmaVersion: 2018
ecmaFeatures:
jsx: true
sourceType: module
Expand Down
Loading

0 comments on commit 7f24395

Please sign in to comment.