gypfileValidity
Enforces that the
gypfileproperty is valid.
✅ This rule is included in the package-json logical presets.
This rule checks that the gypfile property is a boolean.
Examples
Section titled “Examples”{ "gypfile": "true"}{ "gypfile": {}}{ "gypfile": true}{ "gypfile": false}When Not To Use It
Section titled “When Not To Use It”If you don’t need compliance with npm’s gypfile field specification, you can disable this rule.
For example, if your package metadata is consumed by tooling that accepts non-boolean gypfile values, this rule may not be correct for you.
Related Rules
Section titled “Related Rules”- gypfilePresence - Enforces that the
gypfileproperty is present.
Further Reading
Section titled “Further Reading”Equivalents in Other Linters
Section titled “Equivalents in Other Linters”- ESLint:
package-json/valid-gypfile
Made with ❤️🔥 around the world by
the Flint team and contributors.