Skip to content

Support configuration for inner spacing in template literals #578

@patrickschroeter

Description

@patrickschroeter

When writing template literals with inner spacing between braces and variable, the format job always removes them:

const text = 'Hello World!';
- const templateLiteral = `${ text }`;
+ const templateLiteral = `${text}`;

It should be possible to configure the inner spacings in template literals.

If there is already an option to change the behaviour I haven't found them.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions