prettier-plugin-pebble
v0.2.0
Published
Prettier Plugin for Pebble Templates
Downloads
14
Maintainers
Readme
Prettier for Pebble Templates
This Plugin enables Prettier to format Pebble which is a Java templating engine inspired by Twig
Install
npm install --save-dev prettier-plugin-pebble
Use
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/prettier-plugin-pebble"]
}
Testing
- You can call
yarn test
to test against all regular tests