vidavidorra / commitlint-plugin-function-rules

commitlint plugin to use functions as rule value

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

mcfdez opened this issue ยท comments

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

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.

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!

๐ŸŽ‰ This issue has been resolved in version 4.0.0 ๐ŸŽ‰

The release is available on:

Your semantic-release bot ๐Ÿ“ฆ๐Ÿš€