valid-keywords
💼 This rule is enabled in the following configs: ✅ recommended, 📦 recommended-publishable.
This rule uses package-json-validator to validate the keywords property, if present, against the following criteria:
- It must be an array
- The array should only consist of non-empty strings
Examples
Section titled “Examples”{ "keywords": "music"}{ "keywords": ["nin", "A Silver Mt. Zion"]}Related Rules
Section titled “Related Rules”require-keywords- Enforces that thekeywordsproperty is present.