prettier-plugin-ember-template-tag
prettier-plugin-ember-template-tag copied to clipboard
[Feature] Configuration Options
💬 Describe the Feature
Support the following configuration options:
If the user does not set these options, they should fall back to whatever is set for JS/TS.
Any others? Tell me in a comment!
🔬 Use Case
As a developer, I might want to use different prettier configuration for my embedded Glimmer templates than I use for my JS/TS code.
Examples:
- 120 character print width is common for hbs files while 80 is more common for JS/TS.
- People commonly use double quotes in hbs files and single quotes in JS/TS.
Update: Released templateSingleQuote in v0.0.3 but having lots of trouble with templatePrintWidth. It might not be possible (without hacks) due to Prettier's architecture for embedding one format within another. It appears that printWidth is only taken into account during the final conversion from Prettier's doc type to a string, and there's no way to preserve the printWidth for the embedded portion of the doc.