conventional-changelog / commitlint

📓 Lint commit messages

Home Page:https://commitlint.js.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

fix: commitlint is not working

jefersoneiji opened this issue · comments

Steps to Reproduce

  1. First step: Access the getting started section from commitlint

  2. Second step: Follow all the installation/setup steps

Current Behavior

Commitlint apparently doesn't even run when commit-msg is called

Expected Behavior

To throw errors or warning whenever something is wrong.

Affected packages

  • cli
  • core
  • prompt
  • config-angular

Possible Solution

No response

Context

I installed it in a vite + react.js project

commitlint --version

"@commitlint/cli": "^19.3.0",

git --version

2.32.0.windows.1

node --version

20.11.1

Can the docs be improved somehow?

Can the docs be improved somehow?

Yes. I'm a windows user. MacOS and Windows encoding for files tend to be different. After taking a look my encoding was UTF-16 LE. Switching it back to UTF-8 solved the problem. I had to manually rewrite the husky commit-msg file. My code editor is VSCode by the way.

Ah yes, here's the issue: #788
Happy for a PR to the docs :)

Waiting for you to merge it #4086