validate-npm-package-name icon indicating copy to clipboard operation
validate-npm-package-name copied to clipboard

feat: suggest lowercase name in capital letter warning

Open SamiranRai opened this issue 5 months ago • 2 comments

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.

SamiranRai avatar Jun 17 '25 19:06 SamiranRai

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.

wraithgar avatar Jun 17 '25 19:06 wraithgar

Thanks for this submission but I think we will leave it as-is.

wraithgar avatar Jul 21 '25 20:07 wraithgar

No apology needed. Thank you for submitting this, don't let this discourage you from future contributions.

wraithgar avatar Jul 22 '25 15:07 wraithgar