valid-sideEffects
ðž This rule is enabled in the â
recommended config.
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.