commitizen / commitizen/cz-cli

Lint-staged doesn't work with commitizen cli

Ouverte
#911 2 commentaires 0 réactions 0 personnes assignées Voir sur GitHub
Langage dominant
JavaScript
Étoiles
17.5k
Forks
566
Merge moyen
8 h 16 min
PR mergées (30 j)
1

Description

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?

Guide de contribution

Ouvrir le guide de contribution

Évaluation

Cette issue n'a pas encore été évaluée.

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.