---
title: "Discussion on \"Add Commitlint, Commitizen, Standard Version, and Husky to SvelteKit Project\" | Hashnode"
description: "Discussion on \"Add Commitlint, Commitizen, Standard Version, and Husky to SvelteKit Project\". 4/19/2022 Updates. \nI published a second post according to this one: \nAdd lint-staged to SvelteKit Project\n\nRecently I spent a lot of time improving our internal SvelteKit project by aligning coding style & repo quality, especially the commit message..."
url: "https://hashnode.com/posts/add-commitlint-commitizen-standard-version-and-husky-to-sveltekit-project/6252796375dccb6f3431f06c"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Add Commitlint, Commitizen, Standard Version, and Husky to SvelteKit Project](https://davipon.hashnode.dev/add-commitlint-commitizen-standard-version-and-husky-to-sveltekit-project?utm_source=hashnode&utm_medium=feed)

4/19/2022 Updates. I published a second post according to this one: Add lint-staged to SvelteKit Project Recently I spent a lot of time improving our internal SvelteKit project by aligning coding style & repo quality, especially the commit message...

Apr 10, 2022 · 6 min read · davipon.hashnode.dev  
Updated May 20, 2022  
Read the article

-   [#git](https://hashnode.com/tag/git)
-   [#developer](https://hashnode.com/tag/developer)
-   [#javascript](https://hashnode.com/tag/javascript)
-   [#svelte](https://hashnode.com/tag/svelte)
-   [#continuous-integration](https://hashnode.com/tag/continuous-integration)

## Written by

[David Peng](https://hashnode.com/@davipon)

@davipon · Taipei, Taiwan

  
[View profile](https://hashnode.com/@davipon)

Engineering Lead @dipp

Love Web Technologies, Product Management, and Data Visualization. Building products that enable people to be more creative &amp; productive.

## Responses 2

Markdown supported · ⌘↵ to post

[Olivier Refalo](https://hashnode.com/@orefalo)

[May 8, 2022](https://hashnode.com/posts/add-commitlint-commitizen-standard-version-and-husky-to-sveltekit-project/6252796375dccb6f3431f06c/comment/627829d1317fc95a74caa790)

great blog, ty. there is a typo in the article, that kind of got me stuck, I am new to this tooling:

the blog should say: "commit": "cz commit"

[David Peng](https://hashnode.com/@davipon)

[May 9, 2022](https://hashnode.com/posts/add-commitlint-commitizen-standard-version-and-husky-to-sveltekit-project/6252796375dccb6f3431f06c/comment/627829d1317fc95a74caa790#reply-627938647f98319956cd2eb6)

Hi [Olivier Refalo](https://hashnode.com/@orefalo), hope you find the content helpful!

The `commit` script part is directly copied from the `commitizen` [GitHub repo](https://github.com/commitizen/cz-cli#using-the-command-line-tool)

```
// package.json
{
  ...
  "script": {
    "commit": "cz"
  }
}
```

In my work project, I put this just to let my co-workers know they should use it instead of the general `git commit`.

I'd suggest just directly using `npx cz` or `pnpm cz`🙂.

[Olivier Refalo](https://hashnode.com/@orefalo)

[May 9, 2022](https://hashnode.com/posts/add-commitlint-commitizen-standard-version-and-husky-to-sveltekit-project/6252796375dccb6f3431f06c/comment/627829d1317fc95a74caa790#reply-62795102076291997b7658e1)

Hi there,

It does work for me on OSX now, but I had to do the following:

1.  I had to install commitizen (it's a pip package) manually using the brew command.
2.  I must use 'cz commit', cz doesn't do anything as it probably expect something on stdin.

Great article, great links

Sincerely,

PS: I must point that I use yarn ;-)

[Curtis Einsmann](https://hashnode.com/@einsmanntech)

[Apr 11, 2022](https://hashnode.com/posts/add-commitlint-commitizen-standard-version-and-husky-to-sveltekit-project/6252796375dccb6f3431f06c/comment/6254a325b32ddd968bbea2c0)

Nice article, David! And thanks for the mention, glad you're enjoying the course. 😄
