Skip to content

valid-name

💼 This rule is enabled in the following configs: ✔️ legacy-recommended, ✅ recommended, 📦 recommended-publishable.

This rule applies two validations to the name property:

Example of incorrect code for this rule:

{
"name": "Exciting! Package! Name!"
}

Example of correct code for this rule:

{
"name": "exciting-package-name"
}