Skip to content

Commit 6806ebb

Browse files
Trottevanlucas
authored andcommitted
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: #6591 Reviewed-By: cjihrig - Colin Ihrig <[email protected]> Reviewed-By: Jeremiah Senkpiel <[email protected]> Reviewed-By: Minwoo Jung <[email protected]> Reviewed-By: Michaël Zasso <[email protected]>
1 parent 341eaf2 commit 6806ebb

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

.eslintrc

+1
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,7 @@ rules:
8484
no-new-symbol: 2
8585
no-this-before-super: 2
8686
prefer-const: 2
87+
template-curly-spacing: 2
8788

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

0 commit comments

Comments
 (0)