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.
[no-unused-vars] false positive about exported type definitions #189
Closed
Description
Repro
{
"rules": {
"no-unused-vars": "error",
"typescript/no-unused-vars": "error"
}
}
import firebase, {User} from 'firebase/app'
// initialize firebase project
firebase.initializeApp({
...
})
export function authenticated(cb: (user: User | null) => void): void {
firebase.auth().onAuthStateChanged(user => cb(user))
}
Expected Result
It should lint without errors.
Actual Result
utils/authentication.ts:1:19
✖ 1:19 User is defined but never used. no-unused-vars
Versions
package | version |
---|---|
eslint-plugin-typescript |
0.12.0 |
typescript-eslint-parser |
21.0.1 |
typescript |
3.1.6 |