[DOC]: Set up prettier and pre-commit hook to prettify codebase
Closed this issue · 3 comments
cdrani commented
Implementation:
- Setup husky: https://typicode.github.io/husky/get-started.html
- Install prettier as dev dependency
- Add
.prettierrc
file with the below configurations.{ "semi": false, "tabWidth": 4, "printWidth": 100, "singleQuote": true, "trailingComma": "none", "bracketSameLine": false, }
- Add dist and node_modules to
.prettierignore
file - Run prettier on all files.
cdrani commented
@sstephanyy: This might be an even better first issue. Let me know if you want to claim this one instead. I have also updated the contributing
file with steps for local development.
sstephanyy commented
@cdrani thanks for the contribution guide, will be very helpful. Yes, I wanna claim this one :)