Skip to content

versionValidity

Enforces that the version property is valid.

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

The rule checks that the version property is a semver version string.

5<3{d ivclassNa="meec-li">nt< sp ansty="le--0:#7FDBCA;--1:#096E">72"versio53<: sp ansty="le--0:#F78C6C;--1:#AA09">8<21d ivclassNa="meec-li">5<3}d ivclassNa="meco"><}d>
3de6E72"vers3F<53: spans="tyle--0:#D9F5DD;--1:#11">1<111" spans="tyle--0:#C789D6;--1:#7C">56861<.0.0 spans="tyle--0:#D9F5DD;--1:#11">1<111 "divclass="Nameec-">3<0">

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