tools: lint for use of space in template strings

There are over 70 files in the project using template strings and all of
them have followed the convention of no spaces in curly braces.

Good: `${foo}`

Not used: `${ foo }`

Since the project has adopted a convention, and ESLint has a rule to
enforce exactly this convention, enable the rule.

PR-URL: https://github.com/nodejs/node/pull/6591
Reviewed-By: cjihrig - Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com>
Reviewed-By: Minwoo Jung <jmwsoft@gmail.com>
Reviewed-By: Michaël Zasso <mic.besace@gmail.com>
This commit is contained in:
Rich Trott authored and Evan Lucas committed 2016-05-17 08:15:54 -05:00
1 parent 341eaf202e
commit 6806ebb608
1 file changed
+1
+1
View File
@@ -84,6 +84,7 @@ rules:
no-new-symbol: 2
no-this-before-super: 2
prefer-const: 2
template-curly-spacing: 2
# Custom rules in tools/eslint-rules
align-function-arguments: 2