@prettier/plugin-pug
Advanced tools
Changelog
1.10.1
pugSingleFileComponentIndentation
([#145])pugSingleFileComponentIndentation
([#148])'pug'
to vscodeLanguageIds
([#150])Changelog
1.8.0
pugWrapAttributesThreshold
option ([#118])pugWrapAttributesPattern
option ([#126])//- prettier-ignore
comments inside pug templates ([#125])Changelog
1.7.0
pugSortAttributesBeginning
and pugSortAttributesEnd
([#22])1.2.0
, but it was always a bit unstable and opinionated.Changelog
1.6.0
This plugin now supports alias options!
You can configure pug embedded in vue with them :tada:
So instead of
{
"singleQuote": true,
"overrides": [
{
"files": ["*.pug"],
"options": {
"singleQuote": false
}
}
]
}
you can now write
{
"singleQuote": true,
"pugSingleQuote": false
}
Aliases added for:
pugPrintWidth
pugSingleQuote
pugTabWidth
pugUseTabs
pugBracketSpacing
pugSemi
Because prettier currently have something like a bug, you need to set e.g. "pugSingleQuote": "true"
instead of "pugSingleQuote": true
, if you want to set it to true
This needs to be done only for boolean true
values
If an alias is not set, the plugin will fallback to the non alias version
And in the special case of singleQuote
option will take the inverse as before
So no breaking changes are introduced