An open API service indexing awesome lists of open source software.

https://github.com/coliff/husky-prettier-stylelint-test

Testing Git precommit hooks with Husky, Prettier and Stylelint
https://github.com/coliff/husky-prettier-stylelint-test

Last synced: 8 months ago
JSON representation

Testing Git precommit hooks with Husky, Prettier and Stylelint

Awesome Lists containing this project

README

          

# husky-prettier-stylelint-test
Testing Git precommit hooks with Husky, Prettier and Stylelint

1. Clone repo
2. Run `npm install`
3. change a markdown file, css or JS file in the `/src/` directory of this repo
4. type `git add -A`
5. type `commit -m "testing"`

It should run Prettier and Stylelint on the files and automatically prettify

If it just commits successfully with no message then the precommit script isn't working.

Try `npm install --save-dev husky lint-staged prettier stylelint` and repeat from step 3 again.