We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 694c383 commit daf554aCopy full SHA for daf554a
2 files changed
.eslintrc.yml
@@ -2,12 +2,13 @@
2
extends:
3
- 'eslint:recommended'
4
- 'plugin:node/recommended'
5
- - prettier
+ - 'prettier'
6
env:
7
mocha: true
8
plugins:
9
- node
10
- prettier
11
+ - promise
12
rules:
13
prettier/prettier: error
14
block-scoped-var: error
@@ -19,3 +20,8 @@ rules:
19
20
prefer-const: error
21
no-var: error
22
prefer-arrow-callback: error
23
+ no-throw-literal: warn
24
+ require-await: warn
25
+ promise/prefer-await-to-then: warn
26
+ promise/no-nesting: warn
27
+ prefer-destructuring: warn
package.json
@@ -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"
28
}
29
0 commit comments