Enforces that the author property is valid.
✅ This rule is included in the package-json logical presets.
npm requires that the author field in package.json follows certain specifications if it is present.
The field can be either a string or an object with specific properties.
5<3{d ivclassNa="meec-li">nt< sp ansty="le--0:#7FDBCA;--1:#096E">72"autho sp>53<: sp ansty="le--0:#D9F5DD;--1:#1111">113{d><""d ivclassNa="meec-li">5""d><3}d ivclassNa="meco"><}d>}d>3}d>5<3{d ivclassNa="meec-li">nt< sp ansty="le--0:#7FDBCA;--1:#096E">72"autho sp>53<: sp ansty="le--0:#FF6A83;--1:#A248">48nu3{d>5<3}d ivclassNa="meco"><}d>}d>3}d>5<3{d ivclassNa="meec-li">nt< sp ansty="le--0:#7FDBCA;--1:#096E">72"autho sp>53<: sp ansty="le--0:#D9F5DD;--1:#1111">1<1"sp ansty="le--0:#C789D6;--1:#7C56">86Name <invali1"sp>sp ansty="le--0:#D9F5DD;--1:#1111">1sp>3{d><1"d ivclassNa="meec-li">51"d><3}d ivclassNa="meco">""><}d>}d>3}d>5<3{d ivclassNa="meec-li">nt< sp ansty="le--0:#7FDBCA;--1:#096E">72"autho sp>53: 3{d><{}d ivclassNa="meec-li">5{}d><3}d ivclassNa="meco"><}d>}d>3}d>5<3{d ivclassNa="meec-li">nt< sp ansty="le--0:#7FDBCA;--1:#096E">72"autho sp>53:3{d>< {d ivclassNa="meec-li">nt < sp ansty="le--0:#7FDBCA;--1:#096E">72"nam sp>53<: sp ansty="le--0:#D9F5DD;--1:#1111">1<1"sp ansty="le--0:#C789D6;--1:#7C56">86Na1"sp>1<1"sp ansty="le--0:#D6DEEB;--1:#403F">51"sp> {d><3,d ivclassNa="meec-li">nt < sp ansty="le--0:#7FDBCA;--1:#096E">72"emai sp>53<: sp ansty="le--0:#D9F5DD;--1:#1111">1<1"sp ansty="le--0:#C789D6;--1:#7C56">86inval1"sp>13,d><1"d ivclassNa="meec-li">53< sp ansty="le--0:#D6DEEB;--1:#403F">5 sp>1"d><3}d ivclassNa="meec-li">53}d><3}d ivclassNa="meco"><}d>}d>3}d> 3de6E72"aut3F<53: spans="tyle--0:#D9F5DD;--1:#11">153: ><111" spans="tyle--0:#C789D6;--1:#7C">5686First 111">1<111 "divclass="Nameec-">3111><}di vdivclass="Nameexpressive-">3de6E72"aut3F<53: spans="tyle--0:#D9F5DD;--1:#11">153: ><111" spans="tyle--0:#C789D6;--1:#7C">5686Name <name@example.111"> spans="tyle--0:#D9F5DD;--1:#11">1><111 "divclass="Nameec-">3111><>">>">}di><}di vdivclass="Nameexpressive-">3de6E72"aut3F5<3: {divclass="Nameec-">dent< spans="tyle--0:#7FDBCA;--1:#09">6E72"n >3F<53: spans="tyle--0:#D9F5DD;--1:#11">153: ><111" spans="tyle--0:#C789D6;--1:#7C">5686111">13: ><111 "divclass="Nameec-">3F<53 spans="tyle--0:#D6DEEB;--1:#40">353 >111>3< }> }>}di><}di vdivclass="Nameexpressive-">3de6E72"aut3F5<3: {divclass="Nameec-">dent< spans="tyle--0:#7FDBCA;--1:#09">6E72"n >3F<53: spans="tyle--0:#D9F5DD;--1:#11">153: ><111" spans="tyle--0:#C789D6;--1:#7C">5686111">1<111" spans="tyle--0:#D6DEEB;--1:#40">3111">3: >dent< spans="tyle--0:#7FDBCA;--1:#09">6E72"em >3F<53: spans="tyle--0:#D9F5DD;--1:#11">153: ><111" spans="tyle--0:#C789D6;--1:#7C">5686name@example111"><.com spans="tyle--0:#D9F5DD;--1:#11">1<111" spans="tyle--0:#D6DEEB;--1:#40">3111">dent< spans="tyle--0:#7FDBCA;--1:#09">6E72" >3F<53: spans="tyle--0:#D9F5DD;--1:#11">153: ><111" spans="tyle--0:#C789D6;--1:#7C">5686https://example111"><.com spans="tyle--0:#D9F5DD;--1:#11">1<111 "divclass="Nameec-">3F<53 spans="tyle--0:#D6DEEB;--1:#40">353 >111>3< }> }>}di>
If you don’t need compliance with npm’s author 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.