This repository was archived by the owner on Jan 19, 2019. It is now read-only.
This repository was archived by the owner on Jan 19, 2019. It is now read-only.
Imported types cause false positives with no-unused-vars
rule #457
Closed
Description
What version of TypeScript are you using?
2.7.2
What version of typescript-eslint-parser
are you using?
14.0.0
What code were you trying to parse?
import { Server } from "http"
import app from "./app"
let server: Server | null = null
server = app.listen(() => {
console.log("Listening on", server!.address())
})
What did you expect to happen?
No errors are reported with the no-unused-vars
rule on
What happened?
src/test.ts
1:10 error 'Server' is defined but never used no-unused-vars
The no-unused-vars
rule was previously mentioned in the readme as having known issues. Now that it's removed I expected the above code to work.