You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Mar 25, 2021. It is now read-only.
Because this is a type definition file my understanding is that a reference is [still the way to import it](microsoft/TypeScript#2242 (comment) rather than with ES6 modules. As a result the <reference is valid in this use case with no ES6 alternative.
I wonder if it would be appropriate to allow the rule to allow type definition files?
The text was updated successfully, but these errors were encountered:
@DataTables better in this situation to just add your typings files to your list of files via your tsconfig.json file. Then you don't have to include comments like that anywhere in your source files.
Perhaps that should be better explained in the documentation though?
Bug Report
3.15.1
2.0.0 beta
TypeScript code being linted
/// <reference path="../types/node.d.ts" />
with
tslint.json
configuration:Actual behavior
Reference not allowed warning.
Expected behavior
Because this is a type definition file my understanding is that a
reference
is [still the way to import it](microsoft/TypeScript#2242 (comment) rather than with ES6 modules. As a result the<reference
is valid in this use case with no ES6 alternative.I wonder if it would be appropriate to allow the rule to allow type definition files?
The text was updated successfully, but these errors were encountered: