dprint-plugin-typescript icon indicating copy to clipboard operation
dprint-plugin-typescript copied to clipboard

Support configuration for inner spacing in template literals

Open patrickschroeter opened this issue 1 year ago • 2 comments

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.

patrickschroeter avatar Nov 17 '23 11:11 patrickschroeter