diff options
author | Valentin Popov <info@valentineus.link> | 2020-02-14 01:02:36 +0300 |
---|---|---|
committer | Valentin Popov <info@valentineus.link> | 2020-02-14 01:02:36 +0300 |
commit | 8b3dc0cee431945f31098a77c3a7cec0fb666b48 (patch) | |
tree | eb26cd8c13cc33434280fd5951665c06c63cc126 | |
parent | b0067fb63e1234e60a33781fa65ba6ca87f4670e (diff) | |
download | eslint-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.md | 2 | ||||
-rw-r--r-- | src/rules/default.json | 3 |
2 files changed, 4 insertions, 1 deletions
@@ -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" ], |