Skip to content

Commit

Permalink
Add Node 8 standards to linter (#1313)
Browse files Browse the repository at this point in the history
* Add Node 8 standards to linter

* Tweak ESLint config

* Convert new rules to WARNs
  • Loading branch information
Ace Nassri authored May 29, 2019
1 parent 694c383 commit daf554a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .eslintrc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,13 @@
extends:
- 'eslint:recommended'
- 'plugin:node/recommended'
- prettier
- 'prettier'
env:
mocha: true
plugins:
- node
- prettier
- promise
rules:
prettier/prettier: error
block-scoped-var: error
Expand All @@ -19,3 +20,8 @@ rules:
prefer-const: error
no-var: error
prefer-arrow-callback: error
no-throw-literal: warn
require-await: warn
promise/prefer-await-to-then: warn
promise/no-nesting: warn
prefer-destructuring: warn
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
"eslint-config-prettier": "^4.0.0",
"eslint-plugin-node": "^9.0.0",
"eslint-plugin-prettier": "^3.0.0",
"eslint-plugin-promise": "^4.1.1",
"prettier": "^1.15.2"
}
}

0 comments on commit daf554a

Please sign in to comment.