Skip to content

Commit 83aa1f7

Browse files
committed
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: nodejs#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>
1 parent 3f69ea5 commit 83aa1f7

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
@@ -83,6 +83,7 @@ rules:
8383
no-new-symbol: 2
8484
no-this-before-super: 2
8585
prefer-const: 2
86+
template-curly-spacing: 2
8687

8788
# Custom rules in tools/eslint-rules
8889
align-function-arguments: 2

0 commit comments

Comments
 (0)