Skip to content

Commit

Permalink
feat: upgrade to ESLint 5 and switch ecmaVersion to 2018
Browse files Browse the repository at this point in the history
  • Loading branch information
targos committed Jun 26, 2018
1 parent 89a4beb commit 54afe77
Show file tree
Hide file tree
Showing 4 changed files with 244 additions and 220 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Shared ESLint config for cheminfo and ml.js projects.

## Installation

```
```console
npm install --save-dev eslint-config-cheminfo eslint eslint-plugin-import eslint-plugin-jest
```

Expand Down
7 changes: 5 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ module.exports = {
node: true
},
parserOptions: {
ecmaVersion: '2017',
ecmaVersion: '2018',
sourceType: 'script'
},
extends: 'eslint:recommended',
Expand Down Expand Up @@ -371,7 +371,10 @@ module.exports = {
'import/newline-after-import': 'error',
'import/prefer-default-export': 'off',
'import/max-dependencies': 'off',
'import/no-unassigned-import': ['warn', { allow: ['make-promises-safe', 'node-report'] }],
'import/no-unassigned-import': [
'warn',
{ allow: ['make-promises-safe', 'node-report'] }
],
'import/no-named-default': 'warn',
'import/no-default-export': 'off',
'import/no-anonymous-default-export': 'warn',
Expand Down
Loading

0 comments on commit 54afe77

Please sign in to comment.