@nmbl-lang/prettier-plugin
v0.1.1
Published
Prettier plugin for formatting NMBL templates
Maintainers
Readme
@nmbl-lang/prettier-plugin
Prettier plugin for NMBL — formats
.nmbl files to canonical form.
npm install -D prettier @nmbl-lang/prettier-pluginUsage
Add the plugin to your Prettier config:
// .prettierrc
{
"plugins": ["@nmbl-lang/prettier-plugin"]
}Then format as usual:
prettier --write "**/*.nmbl"
prettier --check "**/*.nmbl"Prettier's tabWidth maps to NMBL's indentation and printWidth controls where
attribute lists wrap. Unparseable input is passed through unchanged — the plugin
never mangles a file it can't parse.
This plugin handles standalone
.nmblfiles. To format NMBL embedded in.vue/.svelte/.astro/.jsxfiles, use the@nmbl-lang/cli(nmbl format), which understands those host files.
