Skip to content

valid-sideEffects

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

This rule uses package-json-validator to validate the sideEffects property, if present, against the following criteria:

  • It must be either a boolean or an Array
  • If the value is an Array, it should only consist of non-empty strings
{
"sideEffects": "false"
}