summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorValentin Popov <info@valentineus.link>2020-02-14 01:02:36 +0300
committerValentin Popov <info@valentineus.link>2020-02-14 01:02:36 +0300
commit8b3dc0cee431945f31098a77c3a7cec0fb666b48 (patch)
treeeb26cd8c13cc33434280fd5951665c06c63cc126
parentb0067fb63e1234e60a33781fa65ba6ca87f4670e (diff)
downloadeslint-config-8b3dc0cee431945f31098a77c3a7cec0fb666b48.tar.xz
eslint-config-8b3dc0cee431945f31098a77c3a7cec0fb666b48.zip
feat(eslint): Rule "prefer-object-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 89e8d24..29d3c4b 100644
--- a/ROADMAP.md
+++ b/ROADMAP.md
@@ -238,7 +238,7 @@
- [ ] "prefer-exponentiation-operator"
- [ ] "prefer-named-capture-group"
- [ ] "prefer-numeric-literals"
-- [ ] "prefer-object-spread"
+- [X] "prefer-object-spread"
- [ ] "prefer-promise-reject-errors"
- [X] "prefer-reflect"
- [ ] "prefer-regex-literals"
diff --git a/src/rules/default.json b/src/rules/default.json
index 5a92435..68a20a9 100644
--- a/src/rules/default.json
+++ b/src/rules/default.json
@@ -395,6 +395,9 @@
"ignoreReadBeforeAssign": false
}
],
+ "prefer-object-spread": [
+ "error"
+ ],
"prefer-reflect": [
"off"
],