valid-name
💼 This rule is enabled in the following configs: ✔️ legacy-recommended, ✅ recommended, 📦 recommended-publishable.
This rule applies two validations to the name property:
- It must be a string rather than any other data type
- It should pass
validate-npm-package-namevalidation
Example of incorrect code for this rule:
{ "name": "Exciting! Package! Name!"}Example of correct code for this rule:
{ "name": "exciting-package-name"}