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.
Examples
Section titled “Examples”/// <reference foo="bar" />export const value = 1;/// <reference types />export const value = 1;/// <reference types="node" />export const value = 1;/// <reference types="node" />export const value = 1;Options
Section titled “Options”This rule is not configurable.
When Not To Use It
Section titled “When Not To Use It”If you are using tooling other than TypeScript that uses different triple-slash reference directives, this rule might not be for you.
Further Reading
Section titled “Further Reading”Equivalents in Other Linters
Section titled “Equivalents in Other Linters”
Made with ❤️🔥 in Boston by
Josh Goldberg and contributors.