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>
This commit is contained in:
parent
3fe55f6f91
commit
cb2e83e573
@ -87,6 +87,7 @@ rules:
|
|||||||
no-new-symbol: 2
|
no-new-symbol: 2
|
||||||
no-this-before-super: 2
|
no-this-before-super: 2
|
||||||
prefer-const: 2
|
prefer-const: 2
|
||||||
|
rest-spread-spacing: 2
|
||||||
template-curly-spacing: 2
|
template-curly-spacing: 2
|
||||||
|
|
||||||
# Custom rules in tools/eslint-rules
|
# Custom rules in tools/eslint-rules
|
||||||
|
Loading…
x
Reference in New Issue
Block a user