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 i
via "prepare" stanza inpackage.json
. ./.husky/pre-commit
gets called when trying togit commit
every timelint-staged
and other hooks are calledlint-staged
use callseslint --fix
prettier
is integrated toeslint
as a plugin
Edit these files to make changes: