@supersoniks/prettier-plugin-twig-melody
v1.0.4
Published
Prettier Plugin for Twig/Melody
Downloads
239
Readme
Prettier for Melody

This plugin for Prettier is a fork of prettier-plugin-twig-melody, which is currently unmaintained. Several enhancements have been added to fit our development and templating needs at Supersoniks.
Install
yarn add --dev @supersoniks/prettier-plugin-twig-melodyUse
prettier --write "**/*.melody.twig"In your editor, if the plugin is not automatically picked up and invoked (e.g., if you are using format on save, but no formatting is happening when you save), try adding the plugin explicitly in your Prettier configuration (e.g., .prettierrc.json) using the plugins key:
{
"printWidth": 80,
"tabWidth": 4,
"plugins": ["./node_modules/@supersoniks/prettier-plugin-twig-melody"]
}Enhancements
- Preserve
onlykeyword in twig templates. - Block statements : no empty line between opening end closing
blockstatements. - Html element : nno empty line between opening and closing tags.
