jscs-dev / node-jscs

:arrow_heading_up: JavaScript Code Style checker (unmaintained)
https://jscs-dev.github.io
MIT License
4.96k stars 513 forks source link

New Rule: disallowSpacesInsideTemplateStringPlaceholders (ES6) #2125

Closed ikokostya closed 8 years ago

ikokostya commented 8 years ago

Disallows spaces before and after curly brace inside template string placeholders.

Type: Boolean

Value: true

Example

"disallowSpacesInsideTemplateStringPlaceholders": true
Valid for mode true
`Hello ${name}!`
Invalid for mode true
`Hello ${ name}!`
`Hello ${name }!`
`Hello ${ name }!`
markelog commented 8 years ago

Thanks!