A repo that can possibly accomodate code like https://github.com/ryuheechul/eb-sqs-imdsv2 that is related to experimenting with infrastructure.
The root directory of this repo has been setup to assist linting and formatting and testing when committing so humans can spend less time on those aspects and bots can do their jobs.
Run npm i to install git hook after cloning this repo for development.
Then [./.husky/pre-commit] script will run every time before new commit for things like linting and formatting can be dealt with before pushing code.
Technologies belows are used to make that happen
- https://eslint.org/
- https://prettier.io/
- https://github.com/typicode/husky
- https://github.com/okonet/lint-staged
- Husky gets installed when
npm ivia "prepare" stanza inpackage.json. ./.husky/pre-commitgets called when trying togit commitevery timelint-stagedand other hooks are calledlint-stageduse callseslint --fixprettieris integrated toeslintas a plugin
Edit these files to make changes: