prettyvue-quick
v0.0.6
Published
Runs [Prettyhtml](https://github.com/Prettyhtml/prettyhtml) on your changed (based on Git) files.
Readme
prettyvue-quick
Runs Prettyhtml on your changed (based on Git) files.
Example:
prettyvue-quick
🔍 Finding changed files since git revision 2eb4337.
🎯 Found 1 changed file.
☝ printWidth: 80, tabWidth: 2
✍️ Fixing up test.html.
✅ Everything is awesome!Install
npm install --save-dev prettyvue-quickUsage
With npx: (No install required)
npx prettyvue-quickPre-Commit Hook
You can run prettyvue-quick as a pre-commit hook using husky.
yarn add --dev huskyIn package.json's "scripts" section, add:
"precommit": "prettyvue-quick"CLI Flags
-s --staged
Only staged files will be formatted, and they will be re-staged after formatting.
Formatter options
We use prettier resolveConfig to indentify your tabWidth and printWidth. It will fallback to .editorconfig.
