Commitlint issue

i run command git commit -m "feat(ui): Add initial UI components for the app" but found this message
[email protected] test commitlint --from HEAD~1 --to HEAD && exit 0
⧗ input: your commit message ✖ subject may not be empty [subject-empty] ✖ subject must end with full stop [subject-full-stop] ✖ found 2 problems, 0 warnings ⓘ Get help: https://github.com/conventional-changelog/commitlint/#what-is-commitlint husky - pre-commit hook exited with code 1 (error) my config file for commitlint module.exports = { extends: ["@commitlint/config-conventional"], rules: { "type-empty": [2, "never"], "type-case": [2, "always", "lower-case"], "scope-empty": [2, "never"], "scope-case": [2, "always", "lower-case"], "subject-min-length": [2, "always", 3], "subject-case": [2, "always", "sentence-case"], "subject-full-stop": [2, "never", "."], "header-max-length": [2, "always", 72], "type-enum": [ 2, "always", ["feat", "fix", "docs", "style", "refactor", "test", "chore"], ], "scope-enum": [2, "always", ["core", "ui", "api", "docs"]], "scope-max-length": [2, "always", 100], }, };
GitHub
GitHub - conventional-changelog/commitlint: 📓 Lint commit messages
📓 Lint commit messages. Contribute to conventional-changelog/commitlint development by creating an account on GitHub.
0 Replies
No replies yetBe the first to reply to this messageJoin
Want results from more Discord servers?
Add your server