Skip to content

valid-keywords

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

This rule does the following checks on the value of the keywords property:

  • It must be an array.
  • The array should only consist of non-empty strings

Example of incorrect code for this rule:

{
"keywords": "music"
}

Example of correct code for this rule:

{
"keywords": ["nin", "A Silver Mt. Zion"]
}