Skip to content
This repository has been archived by the owner on Mar 23, 2024. It is now read-only.

New Rule: disallowSpacesInsideTemplateStringPlaceholders (ES6) #2125

Closed
wants to merge 1 commit into from
Closed

New Rule: disallowSpacesInsideTemplateStringPlaceholders (ES6) #2125

wants to merge 1 commit into from

Conversation

ikokostya
Copy link
Contributor

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 }!`

@hzoo hzoo added the esnext label Feb 10, 2016
markelog pushed a commit that referenced this pull request Feb 10, 2016
Disallows spaces before and after curly brace inside
template string placeholders

Valid
`Hello ${name}!`

Invalid
`Hello ${ name }!`

Closes gh-2125
@markelog markelog closed this in 0c46025 Feb 10, 2016
@markelog
Copy link
Member

Thanks!

markelog pushed a commit that referenced this pull request Feb 10, 2016
Disallows spaces before and after curly brace inside
template string placeholders

Valid
`Hello ${name}!`

Invalid
`Hello ${ name }!`

Closes gh-2125
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants