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
Examples
Section titled “Examples”{ "sideEffects": "false"}{ "sideEffects": false}{ "sideEffects": ["./dist/polyfills.js"]}Related Rules
Section titled “Related Rules”require-sideEffects- Enforces that thesideEffectsproperty is present.