Skip to content

bundleDependenciesValidity

Enforces that the bundleDependencies (also: bundledDependencies) property is valid.

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

This rule checks the bundleDependencies property, as well as its alias bundledDependencies. It must be either an array or a boolean. If the value is an array, it should only consist of non-empty strings.

5<3{d ivclassNa="meec-li">nt< sp ansty="le--0:#7FDBCA;--1:#096E">72"bundleDependencie53:< [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"bundleDependenc3F5<3: [ spans="tyle--0:#D9F5DD;--1:#11">1<111" spans="tyle--0:#C789D6;--1:#7C">5686valid-depend1<111" spans="tyle--0:#D6DEEB;--1:#40">33<"]><}di vdivclass="Nameexpressive-">3de6E72"bundleDependenc3F<53: spans="tyle--0:#FF6A83;--1:#A2">48483

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