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
git commit -m "this should fail"
⧗ input: this should fail
✖ Please add rules to your `commitlint.config.js`
- Getting started guide: https://commitlint.js.org/#/?id=getting-started
- Example config: https://github.com/conventional-changelog/commitlint/blob/master/%40commitlint/config-conventional/index.js [empty-rules]
✖ found 1 problems, 0 warnings
ⓘ Get help: https://github.com/conventional-changelog/commitlint/#what-is-commitlint
husky - commit-msg hook exited with code 1 (error)
Affected packages
cli
core
prompt
config-angular
Possible Solution
No response
Steps to Reproduce
mkdir test/package
cdtest
git init
cd package
npm install --save-dev @commitlint/config-conventional @commitlint/cli
echo"module.exports = { extends: ['@commitlint/config-conventional'] };"> commitlint.config.js
npm install husky --save-dev
cd .. && npx husky install package/.husky
npx husky add package/.husky/commit-msg 'npx --no -- commitlint --edit ${1}'cd package
git commit -m "this should fail"
⧗ input: this should fail
✖ Please add rules to your `commitlint.config.js`
- Getting started guide: https://commitlint.js.org/#/?id=getting-started
- Example config: https://github.com/conventional-changelog/commitlint/blob/master/%40commitlint/config-conventional/index.js [empty-rules]
✖ found 1 problems, 0 warnings
ⓘ Get help: https://github.com/conventional-changelog/commitlint/#what-is-commitlint
husky - commit-msg hook exited with code 1 (error)
Context
My use case is that the project is a template folder that uses a nested folder as the template contents (specifically for the dotnet 'new' CLI). I want the template users to use commitlint in their templated projects.
commitlint --version
"@commitlint/cli": "^17.6.5",
git --version
git version 2.39.0.windows.1
node --version
v18.16.0
The text was updated successfully, but these errors were encountered:
Expected Behavior
commitlint should run to completion
Current Behavior
Affected packages
Possible Solution
No response
Steps to Reproduce
Context
My use case is that the project is a template folder that uses a nested folder as the template contents (specifically for the dotnet 'new' CLI). I want the template users to use commitlint in their templated projects.
commitlint --version
"@commitlint/cli": "^17.6.5",
git --version
git version 2.39.0.windows.1
node --version
v18.16.0
The text was updated successfully, but these errors were encountered: