-
Notifications
You must be signed in to change notification settings - Fork 934
feat: how to mitigate errors when adding a new rule and not updating all relevant packages #3894
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
Comments
@escapedcat in order to avoid conflicts with ESM migration I'll wait merge of #3850 before working on a proposal. Also, if agree and there is a spot available, I would like to join conventional-changelog / commitlint team. |
tbh I'm not sure how to do this. Can tag /cc @dangreen , maybe he knows. |
I don't have rights to add new members to organization. I'm not organization owner. |
Sure, but do you know who to contact? Who added you? I was added by Mario but he's isn't available anymore. |
@escapedcat I contacted with @bcoe via email. |
Hey guys, not to be the party-wrecker here, but isn't it a bit early? With this I hope I'm not deterring Marc from making more great contributions. I just think that in general, maintainership is earned, not requested&granted. |
I respectfully disagree with @knocte. I'm involved in OSS a lot, and here is a true example that a I volunteer and request to be maintainer first: tamasfe/taplo#403 (comment) and I'm trust from the original author at tamasfe/taplo#403 (comment). So that I could finally finish the blocking PR tamasfe/taplo#502 What I want to say is, we as volunteers, should be allowed to apply for membership so that we can make more valuable contributions. It's a honor yet responsibility. |
Let's maybe stop here with this off-topic discussion? My 2 cents are that I'm happy if people start trying to get into the org on their own initiative. |
Expected Behavior
See context
Current Behavior
See context
Affected packages
Possible Solution
RangeError: Found invalid rule names
with an additional description providing the user a clue that some@commitlint/packages
should be updated (a link to the new documentation section could do the trick).What do you think? If you agree I can work on a PR.
Context
After adding
header-trim
rule (#3871),a certain amount of user has reported issues when updating commitlint:
For reference:
Explanation of the cause of the error
The error is thrown here:
commitlint/@commitlint/lint/src/lint.ts
Lines 78 to 86 in daa8b1b
all rules is declared reading the content of baseRules:
commitlint/@commitlint/lint/src/lint.ts
Lines 59 to 62 in daa8b1b
baseRules
are imported from@commitlint-rules
:commitlint/@commitlint/lint/src/lint.ts
Line 4 in daa8b1b
in version
14.6.0
header-trim
definition has been addedcommitlint/@commitlint/rules/src/index.ts
Line 55 in daa8b1b
Running command line from CLI doesn't throw any error.
If I have to make a guess not all required packages have updated to version
18.6.0
.Originally posted by @marcalexiei in #3871 (comment)
Solution
If someone is relying on a config which depends on an earlier version of
@commitlint/config-conventional
be sure to update it:Originally posted by @marcalexiei in #3871 (comment)
The text was updated successfully, but these errors were encountered: