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.

5<3{d ivclassNa="meec-li">nt< sp ansty="le--0:#7FDBCA;--1:#096E">72"lib53<: sp ansty="le--0:#D9F5DD;--1:#1111">11<""d ivclassNa="meec-li">5<3}d ivclassNa="meco"><}d>5<3{d ivclassNa="meec-li">nt< sp ansty="le--0:#7FDBCA;--1:#096E">72"lib53:< [sp ansty="le--0:#D9F5DD;--1:#1111">1<1"sp ansty="le--0:#C789D6;--1:#7C56">86gli1<1"sp ansty="le--0:#D6DEEB;--1:#403F">53<, sp ansty="le--0:#D9F5DD;--1:#1111">11<""sp ansty="le--0:#D6DEEB;--1:#403F">53<, sp ansty="le--0:#F78C6C;--1:#AA09">821<23sp ansty="le--0:#D6DEEB;--1:#403F">5<3]d ivclassNa="meec-li">5<3}d ivclassNa="meco"><}d>
3de6E72"l3F<53: spans="tyle--0:#D9F5DD;--1:#11">1<111" spans="tyle--0:#C789D6;--1:#7C">5686g1<111 "divclass="Nameec-">3<}di vdivclass="Nameexpressive-">3de6E72"l3F5<3: [ spans="tyle--0:#D9F5DD;--1:#11">1<111" spans="tyle--0:#C789D6;--1:#7C">5686g1<111" spans="tyle--0:#D6DEEB;--1:#40">3F<53, spans="tyle--0:#D9F5DD;--1:#11">1<111" spans="tyle--0:#C789D6;--1:#7C">56861<111" spans="tyle--0:#D6DEEB;--1:#40">33<"]>

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.