You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Adding a "troubleshooting" section in the docs explaining the reason of the issue and how to resolve it.
Integrate 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:
Expected Behavior
See context
Current Behavior
See context
Affected packages
Possible Solution
RangeError: Found invalid rule nameswith an additional description providing the user a clue that some@commitlint/packagesshould 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-trimrule (#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
baseRulesare imported from@commitlint-rules:commitlint/@commitlint/lint/src/lint.ts
Line 4 in daa8b1b
in version
14.6.0header-trimdefinition 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-conventionalbe sure to update it:Originally posted by @marcalexiei in #3871 (comment)