summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRich Trott <rtrott@gmail.com>2016-05-04 21:49:47 -0700
committerRich Trott <rtrott@gmail.com>2016-05-07 20:14:15 -0700
commit83aa1f7f3f5722174c2c6a667631cc9977d34a81 (patch)
tree99f78a00343082167182d862946e939f10ece529
parent3f69ea53fd800e1f884834e5d032dd89e58fa35c (diff)
downloadnode-new-83aa1f7f3f5722174c2c6a667631cc9977d34a81.tar.gz
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>
-rw-r--r--.eslintrc1
1 files changed, 1 insertions, 0 deletions
diff --git a/.eslintrc b/.eslintrc
index 542be9ceaa..98a14b7ec8 100644
--- a/.eslintrc
+++ b/.eslintrc
@@ -83,6 +83,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