compassdigital.review
To use this module, install this package and run the review.install
command:
$ npm install -D @compassdigital/review
$ npx review.install
The module will update:
.editorconfig
.eslintrc.js
as well as:
- and add
pretest
script to root package that will run eslint before each test eslint --quiet .
- add prettier.config.js if it doesn't exist
- add husky config directory if it doesn't exist
- add pre-commit hook to run lint-staged if it doesn't exist
- this will run prettier --write on all ts, js, and json files on every commit
To fix ESLINT errors run eslint . --fix
or use your editor shortcut.
Some errors you might have to fix yourself.