commitizen / commitizen/cz-cli
Lint-staged doesn't work with commitizen cli
Đang mở
- Ngôn ngữ chính
- JavaScript
- Star
- 17.5k
- Fork
- 566
- Merge trung bình
- 8 giờ 16 phút
- Pull request đã merge (30 ngày)
- 1
Mô tả
I have hooks setup on my repository via husky and [lint-staged](https://www.npmjs.com/package/lint-staged) which should run the linting and prettier commands automatically before commiting the code.
When I make a normal commit using `git commit -m`, lint-staged works but when commiting using commitizen cli, `yarn cz`
(i have this script setup in package.json)
```
"scripts": {
"commit": "cz"
}
```
Lint-stage doesn't run/ doesn't automatically format the code before the commit. Any work-around for this?
Hướng dẫn đóng góp
Đánh giá
Issue này chưa được đánh giá.