From cb2e83e5730b75e150766a324d08617444f1b933 Mon Sep 17 00:00:00 2001 From: Rich Trott Date: Thu, 11 Aug 2016 14:29:22 -0700 Subject: [PATCH] tools: enable rest-spread-spacing MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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: https://github.com/nodejs/node/pull/8073 Reviewed-By: cjihrig - Colin Ihrig Reviewed-By: James M Snell Reviewed-By: targos - Michaël Zasso Reviewed-By: Сковорода Никита Андреевич Reviewed-By: Roman Reiss Reviewed-By: Johan Bergström --- .eslintrc | 1 + 1 file changed, 1 insertion(+) diff --git a/.eslintrc b/.eslintrc index e03b7865ed5e64..ea69526dda8d7a 100644 --- a/.eslintrc +++ b/.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