summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorValentin Popov <info@valentineus.link>2020-02-14 01:05:43 +0300
committerValentin Popov <info@valentineus.link>2020-02-14 01:05:43 +0300
commitd79a699a42e5a21953dfb6949237a98ff8ef7552 (patch)
tree02b9d28d43a34b75b5c9ea656273cc4ee48331b0
parent85de842fca3eebedb0a4b9d677825c92dde4080a (diff)
downloadeslint-config-d79a699a42e5a21953dfb6949237a98ff8ef7552.tar.xz
eslint-config-d79a699a42e5a21953dfb6949237a98ff8ef7552.zip
feat(eslint): Rule "prefer-spread"
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 2dfa706..17e92af 100644
--- a/ROADMAP.md
+++ b/ROADMAP.md
@@ -243,7 +243,7 @@
- [X] "prefer-reflect"
- [ ] "prefer-regex-literals"
- [X] "prefer-rest-params"
-- [ ] "prefer-spread"
+- [X] "prefer-spread"
- [ ] "prefer-template"
- [X] "quote-props"
- [X] "quotes"
diff --git a/src/rules/default.json b/src/rules/default.json
index af45e83..e5e5bd7 100644
--- a/src/rules/default.json
+++ b/src/rules/default.json
@@ -404,6 +404,9 @@
"prefer-rest-params": [
"error"
],
+ "prefer-spread": [
+ "error"
+ ],
"quote-props": [
"error",
"consistent-as-needed",