Skip to content

tripleSlashReferenceValidity

Reports invalid triple-slash reference directives.

✅ This rule is included in the ts logical presets.

Triple-slash reference directives must use valid directive types and proper formatting. Only lib, no-default-lib, path, and types are valid directive attributes.

76/// <reference foo="bar" d ivclassNa="meec-li">AEexport consB0valAE <= sp ansty="le--0:#F78C6C;--1:#AA09">8<21sp ansty="le--0:#D6DEEB;--1:#403F">5d><3;d ivclassNa="meco"><1;d>76/// <reference types d ivclassNa="meec-li">AEexport consB0valAE <= sp ansty="le--0:#F78C6C;--1:#AA09">8<21sp ansty="le--0:#D6DEEB;--1:#403F">5d><3;d ivclassNa="meco"><1;d>
636F<44AE spans="tyle--0:#7F">DECE6referD61B0t4<4AE= spans="tyle--0:#D9F5DD;--1:#11">1<111" spans="tyle--0:#ECC48D;--1:#98">4E4D1<111" spans="tyle--0:#7FDBCA;--1:#88">44A44AEexport co61B0v44A0<9821 spans="tyle--0:#D6DEEB;--1:#40">3<= 1><;di vdivclass="Nameexpressive-">636F<44AE spans="tyle--0:#7F">DECE6referD61B0t4<4AE= spans="tyle--0:#D9F5DD;--1:#11">1<111" spans="tyle--0:#ECC48D;--1:#98">4E4D1<111" spans="tyle--0:#7FDBCA;--1:#88">44A44AEexport co61B0v44A0<9821 spans="tyle--0:#D6DEEB;--1:#40">3<= 1>

This rule is not configurable.

If you are using tooling other than TypeScript that uses different triple-slash reference directives, this rule might not be for you.