Runs [Prettyhtml](https://github.com/Prettyhtml/prettyhtml) on your changed (based on Git) files.
npm install @starptech/prettyhtml-quickRuns Prettyhtml on your changed (based on Git) files.
Example:
```
prettyhtml-quick
š Finding changed files since git revision 2eb4337.
šÆ Found 1 changed file.
ā printWidth: 80, tabWidth: 2
āļø Fixing up test.html.
ā
Everything is awesome!
`shellsession`
npm install --save-dev @starptech/prettyhtml-quick
With npx: (No install required)
`shellsession`
npx @starptech/prettyhtml-quick
You can run prettyhtml-quick as a pre-commit hook using husky.
`shellstream`
yarn add --dev husky
In package.json's "scripts" section, add:
``
"precommit": "prettyhtml-quick"
Only staged files will be formatted, and they will be re-staged after formatting.
We use prettier resolveConfig to indentify your tabWidth and printWidth. It will fallback to .editorconfig`.