Open
Description
Expected Behavior
use default config and dont throw error
Current Behavior
$ echo "feat: asdasd" | npx --yes @commitlint/cli
⧗ input: feat: asdasd
✖ 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
Affected packages
- cli
- core
- prompt
- config-angular
Possible Solution
load default config
Steps to Reproduce
1. `echo "feat: asdasd" | npx --yes @commitlint/cli`
2. `echo "feat: asdasd" | npx --yes commitlint`
Context
https://commitlint.js.org/#/guides-local-setup?id=test-simple-usage says "For a first simple usage test of commitlint you can do the following: npx commitlint --from HEAD~1 --to HEAD --verbose
" but if you adapt it to read from stdin it does not work.
commitlint --version
@commitlint/cli@17.7.1
git --version
git version 2.42.0
node --version
v20.5.1