Closed andrewn closed 6 years ago
Does your editor allow you to format on save?
Alternatively a pre-commit hook could work.
Husky looks like it could let us define the hooks in package.json rather than rely on everyone installing them manually: https://github.com/typicode/husky
Husky looks like an excellent solution!
PRs Welcome!
😡
Formats all code and adds an
npm run format-code
task to do it in future.I've added
.prettierrc
to prefer single quotes around non-JSX strings.I've quickly smoke-tested this and it seems to work.