Skip to content

Commit 26f49f0

Browse files
authored
Merge pull request #256 from humanmade/template-curly-spacing
Require spaces in template strings
2 parents 39c1d84 + 34bafd9 commit 26f49f0

File tree

3 files changed

+13
-0
lines changed

3 files changed

+13
-0
lines changed
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
/* eslint-disable no-unused-expressions */
2+
3+
const foo = 42;
4+
5+
`${foo}`;
6+
`${ foo}`;
7+
`${foo }`;
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
/* eslint-disable no-unused-expressions */
2+
3+
const foo = 42;
4+
5+
`${ foo }`;

packages/eslint-config-humanmade/index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,7 @@ module.exports = {
120120
'!': true,
121121
},
122122
} ],
123+
'template-curly-spacing': [ 'error', 'always' ],
123124
'yoda': [ 'error', 'never' ],
124125
'jsdoc/require-jsdoc': [ 'error', {
125126
'require': {

0 commit comments

Comments
 (0)