commitizen / commitizen/cz-cli

Lint-staged doesn't work with commitizen cli

オープン
#911 コメント 2 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
JavaScript
スター
17.5k
フォーク
566
平均マージ
8時間 16分
マージ済み PR(30日)
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 を短くまとめたダイジェスト。