Skip to content

binValidity

Enforces that the bin property is valid.

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

This rule checks that the bin property is either a non-empty string or an object. If the value is an object, it should only consist of non-empty string values.

{
"bin": {
"invalid-bin": 123
}
}

If you don’t need compliance with npm’s bin 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.

  • binPresence - Enforces that the bin property is present.
Made with ❤️‍🔥 around the world by the Flint team and contributors.