0.0.1 ⢠Published 3 years ago
prettyvue v0.0.1
prettyvue
Runs Prettyhtml on your changed (based on Git) files.
Example:
prettyvue
š 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 prettyvueUsage
With npx: (No install required)
npx prettyvuePre-Commit Hook
You can run prettyvue as a pre-commit hook using husky.
yarn add --dev huskyIn package.json's "scripts" section, add:
"precommit": "prettyvue"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.
0.0.1
3 years ago