diff options
author | Rich Trott <rtrott@gmail.com> | 2016-05-04 21:49:47 -0700 |
---|---|---|
committer | Rich Trott <rtrott@gmail.com> | 2016-05-07 20:14:15 -0700 |
commit | 83aa1f7f3f5722174c2c6a667631cc9977d34a81 (patch) | |
tree | 99f78a00343082167182d862946e939f10ece529 | |
parent | 3f69ea53fd800e1f884834e5d032dd89e58fa35c (diff) | |
download | node-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-- | .eslintrc | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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 |