validate-npm-package-name
validate-npm-package-name copied to clipboard
feat: suggest lowercase name in capital letter warning
What / Why
Improved the warning message for legacy mixed-case package names in validate-npm-package-name. Previously, the validator would return a generic warning:
"name can no longer contain capital letters".
This PR enhances the message to:
"name can no longer contain capital letters. Try: lowercase-version".
This small improvement helps developers quickly understand and fix the issue by suggesting a lowercase alternative, improving overall developer experience.
The unrelated changes to new lines is making this harder to review than it needs to be. Please limit changes only to what are needed.
Thanks for this submission but I think we will leave it as-is.
No apology needed. Thank you for submitting this, don't let this discourage you from future contributions.