summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorValentin Popov <info@valentineus.link>2020-02-13 22:53:52 +0300
committerValentin Popov <info@valentineus.link>2020-02-13 22:53:52 +0300
commitc59ed2364d248452657e3f805f85e69005c1ee83 (patch)
tree1e88ec787074d9fb4212fbe846b75c7ed7086207
parent649ad0f879ac873bec652b2c71dc0fe27e787920 (diff)
downloadeslint-config-c59ed2364d248452657e3f805f85e69005c1ee83.tar.xz
eslint-config-c59ed2364d248452657e3f805f85e69005c1ee83.zip
feat(eslint): Rule "require-await"
Signed-off-by: Valentin Popov <info@valentineus.link>
-rw-r--r--ROADMAP.md2
-rw-r--r--src/rules/default.json3
2 files changed, 4 insertions, 1 deletions
diff --git a/ROADMAP.md b/ROADMAP.md
index da55dc5..900542c 100644
--- a/ROADMAP.md
+++ b/ROADMAP.md
@@ -249,7 +249,7 @@
- [X] "quotes"
- [ ] "radix"
- [ ] "require-atomic-updates"
-- [ ] "require-await"
+- [X] "require-await"
- [X] "require-jsdoc"
- [ ] "require-unicode-regexp"
- [ ] "require-yield"
diff --git a/src/rules/default.json b/src/rules/default.json
index 249b189..7df9925 100644
--- a/src/rules/default.json
+++ b/src/rules/default.json
@@ -315,6 +315,9 @@
"avoidEscape": false
}
],
+ "require-await": [
+ "warn"
+ ],
"require-jsdoc": [
"off"
],