End-all solution to typescript code style in a handy wrapper. Using tslint with (almost) standard config, and pre-configured prettier. Optionally also run jest.
This bundles all the stuff I usually end up using in a single place.
Standard config, but with comma dangle. No-semi, yes-comma just makes it easier to add, remove, or reorder lines. Additional lint rules to check import/property order to keep things even more consistent. And that's it.
Use together with husky
yarn add --dev husky bikeshed
in package.json scripts:
"scripts": {
"precommit": "bikeshed -c"
"prepush": "bikeshed"
}
-
tests
- [ ] fix arguments
- [ ] fix project
- [ ] fix staged
-
features
- [ ] fix arguments
- [ ] fix project
- [ ] fix staged
maybe:
-
[ ] jest with findRelatedFiles
-
[ ] watch mode (on git-add?)