You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If i commit via terminal like git commit -m "feat:test", it's work. But when i try to commit via VSCode's UI, it throw error like below;
I got that error when i try to commit my changes Unexpected token '?' husky - commit-msg hook exited with code 1 (error)
> git -c user.useConfigOnly=true commit --quiet --allow-empty-message --file -
yarn run v1.22.19
warning package.json: No license field
$ npx husky install
npx: installed 1 in 0.965s
husky - Git hooks installed
Done in 1.32s.
yarn run v1.22.19
Stashing changes... [started]
Stashing changes... [completed]
Running linters... [started]
Running tasks for *.js [started]
eslint --fix [started]
eslint --fix [completed]
git add [started]
git add [completed]
Running tasks for *.js [completed]
Running linters... [completed]
Updating stash... [started]
Updating stash... [completed]
Restoring local changes... [started]
Restoring local changes... [completed]
Done in 5.09s.
npx: installed 1 in 1.213s
husky - updated .husky/commit-msg
npx: installed 199 in 18.821s
Unexpected token '?'
husky - commit-msg hook exited with code 1 (error)
If i commit via terminal like
git commit -m "feat:test"
, it's work. But when i try to commit via VSCode's UI, it throw error like below;I got that error when i try to commit my changes
Unexpected token '?' husky - commit-msg hook exited with code 1 (error)
Then i configured my
commitlint
file like that;Then i configured my
pre-commit file
file like that;Then i configured my
commitlint.config.js
file like that;The text was updated successfully, but these errors were encountered: