If you run tslint -c tslint.json --type-check --project tsconfig.json '*.ts'
in this folder you'll see:
$ tslint -c tslint.json --type-check --project tsconfig.json '*.ts'
ERROR: main.ts[1, 1]: All imports are unused.
- If you remove any of the files in this project (including
fa.ts
which is not used at all) the error disappears. - If you rename
fa.ts
to something afterfoo.ts
(likeh.ts
,fz.ts
or evenfop.ts
) the error disappears. - If you rename
fa.ts
to something beforefoo.ts
(likea.ts
orfon.ts
) the error remains - If you empty
fa.ts
the error disappears - If you remove
Foo
import frommain.ts
and replaceFoo<IBar>
forArray<IBar>
orPartial<IBar>
the error disappears - And of course if your remove
IBar
import frommain.ts
and replaceFoo<IBar>
forFoo<{}>
or something else the error disappears
5.2.0
2.3.2