summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorValentin Popov <info@valentineus.link>2020-02-14 01:04:47 +0300
committerValentin Popov <info@valentineus.link>2020-02-14 01:04:47 +0300
commit85de842fca3eebedb0a4b9d677825c92dde4080a (patch)
treef198e4c0781f72787733baf33e0ea09266356b76
parent8b3dc0cee431945f31098a77c3a7cec0fb666b48 (diff)
downloadeslint-config-85de842fca3eebedb0a4b9d677825c92dde4080a.tar.xz
eslint-config-85de842fca3eebedb0a4b9d677825c92dde4080a.zip
feat(eslint): Rule "prefer-rest-params"
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 29d3c4b..2dfa706 100644
--- a/ROADMAP.md
+++ b/ROADMAP.md
@@ -242,7 +242,7 @@
- [ ] "prefer-promise-reject-errors"
- [X] "prefer-reflect"
- [ ] "prefer-regex-literals"
-- [ ] "prefer-rest-params"
+- [X] "prefer-rest-params"
- [ ] "prefer-spread"
- [ ] "prefer-template"
- [X] "quote-props"
diff --git a/src/rules/default.json b/src/rules/default.json
index 68a20a9..af45e83 100644
--- a/src/rules/default.json
+++ b/src/rules/default.json
@@ -401,6 +401,9 @@
"prefer-reflect": [
"off"
],
+ "prefer-rest-params": [
+ "error"
+ ],
"quote-props": [
"error",
"consistent-as-needed",