feat: configless execution
Expected Behavior
I want to be able to run bunx @commitlint/cli without the overhead of a config file.
Current Behavior
$ echo "feat: funny commit message" | bunx @commitlint/cli
â§— input: feat: funny commit message
✖ Please add rules to your `commitlint.config.js`
- Getting started guide: https://commitlint.js.org/guides/getting-started
- Example config: https://github.com/conventional-changelog/commitlint/blob/master/%40commitlint/config-conventional/src/index.ts [empty-rules]
Affected packages
- [x] cli
- [ ] core
- [ ] prompt
- [ ] config-angular
Possible Solution
- a
--use-default-configoption, which is explicitly turned on (not default, only on when provided, mutually exclusive to --config) - Use the @commitlint/config-conventional config and don't require a config file to be created. --use-remote-configwhich is similar, possibly dodging a political battle about which "default" config wins, but allowing the flexibility to run this again, without the overhead of installing a package.
Context
This is one of my favorite CLIs!
I often use it in CI environments for my projects.
Some of the time those projects might be node based or hybrid where a package.json would exist at the root, and the cli can be easily added as a devDependency.
I happened to find a reason to want to use this in a CI environment for a Non-node project, and found that writing this issue cost me less time than setting up a Node package / installing a config file / rewriting CI.
With bunx, (even more so than npx) it has become ridiculously easy to use node CLIs without the really messy overhead of the node ecosystem. My desire in writing this issue is for the CLI to act more like a CLI and less like a node-dependent library.
User Story
As a user, i want to run this whenever it's convenient and not be constrained by having to do a lot of package overhead.
Please add further ideas to the existing issue