We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
It would be great if the commitlint cli provided an option similar to ESLint's --print-config option to print the current configuration.
--print-config
commitlint --print-config
would print the current configuration, after resolving/merging any extends, to stdout as JSON. For example, with .commitlint.config.js
extends
stdout
.commitlint.config.js
module.exports = {extends: ['@commitlint/config-angular']};
it would print
{ "rules": { "body-leading-blank": [1, "always"], "footer-leading-blank": [1, "always"], "header-max-length": [2, "always", 72], "scope-case": [2, "always", "lower-case"], "subject-case": [2, "never", [ "sentence-case", "start-case", "pascal-case", "upper-case" ]], "subject-empty": [2, "never"], "subject-full-stop": [2, "never", "."], "type-case": [2, "always", "lower-case"], "type-empty": [2, "never"], "type-enum": [ "build", "ci", "docs", "feat", "fix", "perf", "refactor", "revert", "style", "test" ] } }
I have not seen such an option mentioned.
My current use case is to provide autocompletion of types and scopes from the commitlint configuration while editing commit messages.
Thanks for considering, Kevin
The text was updated successfully, but these errors were encountered:
Hey @kevinoid, sounds like a good idea. Maybe someone is up to help out.
Sorry, something went wrong.
This looks great! Thanks @armano2 and @escapedcat!
All thanks goes to @armano2 ❤️ We'll do a new release soon which will include this.
Successfully merging a pull request may close this issue.
It would be great if the commitlint cli provided an option similar to ESLint's
--print-config
option to print the current configuration.Expected Behavior
would print the current configuration, after resolving/merging any
extends
, tostdout
as JSON. For example, with.commitlint.config.js
it would print
Current Behavior
I have not seen such an option mentioned.
Affected packages
Context
My current use case is to provide autocompletion of types and scopes from the commitlint configuration while editing commit messages.
Thanks for considering,
Kevin
The text was updated successfully, but these errors were encountered: