valid-name
💼 This rule is enabled in the following configs: ✅ recommended, 📦 recommended-publishable.
This rule uses package-json-validator to validate the name property, if present, against the following criteria:
- It must be a string
- It should pass
validate-npm-package-namevalidation
Examples
Section titled “Examples”{ "name": "Exciting! Package! Name!"}{ "name": "exciting-package-name"}Related Rules
Section titled “Related Rules”require-name- Enforces that thenameproperty is present.