Search code examples
javascriptgitfrontendyarn-v2

CommitLint in yarn v2


there. I'm trying to set CommitLint and husky in my project with yarn 2 but when I commit, I ran to this problem. Is there any way to fix this? I've tried using 3 commands below:

  • npx --no-install commitlint --edit "$1"
  • yarn --no-install commitlint --edit "$1"
  • yarn run --no-install commitlint --edit "$1"

I'm using Mac OS X 10.11.6 with Node 14 LTS. My repo is on GitLab (have to bypass the commitlint check)

Using npx
Using yarn
Using yarn run


Solution

  • I've checked this with CommitLint Devs. He said that currently it isn't supported. You can have a look here. And there is a note on the website, too