typescript/triple-slash-reference Correctness ​
What it does ​
Disallow certain triple slash directives in favor of ES6-style import declarations.
Why is this bad? ​
Use of triple-slash reference type directives is generally discouraged in favor of ECMAScript Module imports.
Example ​
ts
/// <reference lib="code" />
globalThis.value;
How to use ​
To enable this rule in the CLI or using the config file, you can use:
bash
oxlint --deny typescript/triple-slash-reference
json
{
"rules": {
"typescript/triple-slash-reference": "error"
}
}