libcValidity
Enforces that the
libcproperty is valid.
✅ This rule is included in the package-json logical presets.
This rule checks that the libc property is a non-empty string or an array of non-empty strings.
Each string should name a libc variant supported by the package.
Examples
Section titled “Examples”{ "libc": ""}{ "libc": ["glibc", "", 123]}{ "libc": "glibc"}{ "libc": ["glibc", "musl"]}When Not To Use It
Section titled “When Not To Use It”If you don’t need compliance with npm’s libc field specification, you can disable this rule.
For example, if your registry accepts a different way to declare libc compatibility, this rule may not be correct for you.
Related Rules
Section titled “Related Rules”- libcPresence - Enforces that the
libcproperty is present.
Further Reading
Section titled “Further Reading”Equivalents in Other Linters
Section titled “Equivalents in Other Linters”- ESLint:
package-json/valid-libc
Made with ❤️🔥 around the world by
the Flint team and contributors.