feat(typescript): Rule "require-await"

Signed-off-by: Valentin Popov <info@valentineus.link>
This commit is contained in:
Valentin Popov 2020-02-13 23:55:55 +04:00
parent c59ed2364d
commit 1155911243
Signed by: Valentin Popov
GPG Key ID: 269A00ACA90A8EA3
2 changed files with 7 additions and 1 deletions

View File

@ -400,7 +400,7 @@
- [ ] "promise-function-async" - [ ] "promise-function-async"
- [X] "quotes" - [X] "quotes"
- [ ] "require-array-sort-compare" - [ ] "require-array-sort-compare"
- [ ] "require-await" - [X] "require-await"
- [ ] "restrict-plus-operands" - [ ] "restrict-plus-operands"
- [ ] "restrict-template-expressions" - [ ] "restrict-template-expressions"
- [ ] "return-await" - [ ] "return-await"

View File

@ -54,6 +54,9 @@
"avoidEscape": false "avoidEscape": false
} }
], ],
"@typescript-eslint/require-await": [
"warn"
],
"@typescript-eslint/semi": [ "@typescript-eslint/semi": [
"error", "error",
"always", "always",
@ -75,6 +78,9 @@
"quotes": [ "quotes": [
"off" "off"
], ],
"require-await": [
"off"
],
"semi": [ "semi": [
"off" "off"
] ]