Last active
February 5, 2023 15:26
-
-
Save aklinker1/0a8e50c5dcca34653ce8b3c027d5551a to your computer and use it in GitHub Desktop.
Standard Prettier Setup
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
singleQuote: true | |
trailingComma: all | |
endOfLine: lf | |
printWidth: 80 | |
tabWidth: 2 | |
vueIndentScriptAndStyle: false |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pnpm add -D prettier husky pretty-quick | |
pnpm husky install | |
pnpm husky add .husky/pre-commit "pnpm pretty-quick --staged" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"scripts": { | |
"format": "prettier --write .", | |
"format:check": "prettier --check .", | |
"prepare": "husky install" | |
}, | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment