Skip to content

Latest commit

 

History

History
32 lines (23 loc) · 618 Bytes

File metadata and controls

32 lines (23 loc) · 618 Bytes

valid-sideEffects

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

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

  • It must be either a boolean or an array.
  • If the value is an array, it should only consist of non-empty strings

Example of incorrect code for this rule:

{
	"sideEffects": "false"
}

Example of correct code for this rule:

{
	"sideEffects": false
}
{
	"sideEffects": ["./dist/polyfills.js"]
}