Browse Source

tools: enable rest-spread-spacing

There are currently 17 instances of the spread operator and all of them
have no space between the operator and the subsequent argument. This
change enables a lint rule to enforce that same style on any future uses
of the spread operator.

Refs: 7a1b47f329 (r74479351)
PR-URL: https://github.com/nodejs/node/pull/8073
Reviewed-By: cjihrig - Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: targos - Michaël Zasso <mic.besace@gmail.com>
Reviewed-By: Сковорода Никита Андреевич <chalkerx@gmail.com>
Reviewed-By: Roman Reiss <me@silverwind.io>
Reviewed-By: Johan Bergström <bugs@bergstroem.nu>
v7.x
Rich Trott 8 years ago
parent
commit
cb2e83e573
  1. 1
      .eslintrc

1
.eslintrc

@ -87,6 +87,7 @@ rules:
no-new-symbol: 2
no-this-before-super: 2
prefer-const: 2
rest-spread-spacing: 2
template-curly-spacing: 2
# Custom rules in tools/eslint-rules

Loading…
Cancel
Save