Skip to content

scriptsValidity

Enforces that the scripts property is valid.

✅ This rule is included in the package-json logical presets.

The rule checks that the scripts property is an object consisting of non-empty string keys and values.

{
"scripts": {
"invalid-script": 123
}
}

If you don’t need compliance with npm’s scripts field specification, you can disable this rule. For example, if you use a different package manager that treats the field differently, this rule may not be correct for you.

Made with ❤️‍🔥 around the world by the Flint team and contributors.