Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Node 8 standards to linter #1313

Merged
merged 4 commits into from
May 29, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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"
}
}