fis3-postprocessor-prettyhtml

a code formatter of fis3 based on prettyhtml.

Usage no npm install needed!

<script type="module">
  import fis3PostprocessorPrettyhtml from 'https://cdn.skypack.dev/fis3-postprocessor-prettyhtml';
</script>

README

fis3-postprocessor-prettyhtml

a code formatter of fis3 based on prettyhtml.

styled with prettier npm npm npm

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

license

MIT © fisker Cheung