diff options
author | Ruben Bridgewater <ruben@bridgewater.de> | 2018-12-18 02:28:09 +0100 |
---|---|---|
committer | Ruben Bridgewater <ruben@bridgewater.de> | 2018-12-20 13:14:46 +0100 |
commit | 4b7a530f2b1a789b3feb64e3698d61b4ccc6bab5 (patch) | |
tree | 1cd8dd1d0ff4c113081502ddca54d5f9c7be8cb4 /lib/.eslintrc.yaml | |
parent | 6f8ccef74ec514292ebf8ee65602d8c109b0aa2b (diff) | |
download | node-new-4b7a530f2b1a789b3feb64e3698d61b4ccc6bab5.tar.gz |
lib: switch to object spread where possible
Use the object spread notation instead of using Object.assign.
It is not only easier to read it is also faster as of V8 6.8.
PR-URL: https://github.com/nodejs/node/pull/25104
Reviewed-By: Gus Caplan <me@gus.host>
Reviewed-By: Michaƫl Zasso <targos@protonmail.com>
Reviewed-By: Yuta Hiroto <hello@hiroppy.me>
Reviewed-By: Minwoo Jung <minwoo@nodesource.com>
Reviewed-By: Denys Otrishko <shishugi@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Diffstat (limited to 'lib/.eslintrc.yaml')
-rw-r--r-- | lib/.eslintrc.yaml | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/.eslintrc.yaml b/lib/.eslintrc.yaml index 65c7c88ba0..a7a1c15e90 100644 --- a/lib/.eslintrc.yaml +++ b/lib/.eslintrc.yaml @@ -1,4 +1,5 @@ rules: + prefer-object-spread: error no-restricted-syntax: # Config copied from .eslintrc.js - error |