commitizen / commitizen/cz-cli

Lint-staged doesn't work with commitizen cli

未关闭
#911 2 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
JavaScript
星标
17.5k
派生
566
平均合并
8 小时 16 分钟
30 天内合并 PR
1

描述

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?

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。