Skip to content

Found invalid rule names: function-rules/type-enum. after upgrade @commitlint/cli to v19 #225

New issue

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

Closed
mcfdez opened this issue Mar 4, 2024 · 3 comments · Fixed by #226
Closed
Labels
bug Something isn't working released

Comments

@mcfdez
Copy link

mcfdez commented Mar 4, 2024

After update @commitlint/cli to laste version (19), this error appeared:

RangeError: Found invalid rule names: function-rules/type-enum. Supported rule names are: body-case, body-empty, body-full-stop, body-leading-blank, body-max-length, body-max-line-length, body-min-length, footer-empty, footer-leading-blank, footer-max-length, footer-max-line-length, footer-min-length, header-case, header-full-stop, header-max-length, header-min-length, header-trim, references-empty, scope-case, scope-empty, scope-enum, scope-max-length, scope-min-length, signed-off-by, subject-case, subject-empty, subject-full-stop, subject-max-length, subject-min-length, subject-exclamation-mark, trailer-exists, type-case, type-empty, type-enum, type-max-length, type-min-length

@mcfdez mcfdez added the bug Something isn't working label Mar 4, 2024
@jdbruijn
Copy link
Member

v19 was not supported, as per the

"@commitlint/lint": ">=9.1.2 <19"

I've just released a beta version that introduces v19 support, and deprecates all other versions due to changes in the way commitlint loads plugins. Could you please test with 4.0.0-beta.1 and let me know whether that works. If it doesn't work pleas provide additional information, like the exact cli version and this package version.

For next time, please use the bug issue template for this type of issue. This helps me as it requests additional information, like the exact version.

@oekazuma
Copy link

I also had this problem and installed 4.0.0-beta.1 with "@commitlint/cli":"^19.2.0 version and tried it and it worked fine!

Thank you!

@jdbruijn jdbruijn mentioned this issue Mar 25, 2024
jdbruijn added a commit that referenced this issue Mar 25, 2024
Copy link
Contributor

🎉 This issue has been resolved in version 4.0.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working released
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants