Skip to content

libcValidity

Enforces that the libc property 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.

{
"libc": ""
}
{
"libc": ["glibc", "", 123]
}

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.

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