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
- Host: GitHub
- URL: https://github.com/coliff/husky-prettier-stylelint-test
- Owner: coliff
- License: mit
- Created: 2019-06-20T15:46:41.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2019-06-27T11:10:02.000Z (almost 7 years ago)
- Last Synced: 2025-02-24T06:14:59.392Z (over 1 year ago)
- Language: CSS
- Size: 56.6 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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.