fis3-postprocessor-prettyhtml
v3.1.0
Published
a code formatter of fis3 based on prettyhtml.
Downloads
15
Maintainers
Readme
fis3-postprocessor-prettyhtml
a code formatter of fis3 based on prettyhtml.
install
npm install --global fis3-postprocessor-prettyhtml
usage
// fis-conf.js
const options = {}
fis.match('*.html', {
postprocessor: fis.plugin('prettyhtml', options),
})
config: https://github.com/Prettyhtml/prettyhtml
default options
{
"tabWidth": 2,
"useTabs": false,
"printWidth": 80,
"usePrettier": true,
"singleQuote": false
}
NOTICE: this might change in future
links
fis3: http://fis.baidu.com/
prettyhtml: https://github.com/Prettyhtml/prettyhtml
license
MIT © fisker Cheung