Skip to content

Commit e611c29

Browse files
Trottcjihrig
authored andcommitted
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: https://github.com/nodejs/node/pull/6573/files/7a1b47f329f2e6481ef8f54951570197fd98378d#r74479351 PR-URL: #8073 Reviewed-By: cjihrig - Colin Ihrig <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: targos - Michaël Zasso <[email protected]> Reviewed-By: Сковорода Никита Андреевич <[email protected]> Reviewed-By: Roman Reiss <[email protected]> Reviewed-By: Johan Bergström <[email protected]>
1 parent 7eb0e7a commit e611c29

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

.eslintrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,7 @@ rules:
8787
no-new-symbol: 2
8888
no-this-before-super: 2
8989
prefer-const: 2
90+
rest-spread-spacing: 2
9091
template-curly-spacing: 2
9192

9293
# Custom rules in tools/eslint-rules

0 commit comments

Comments
 (0)