Skip to content
This repository was archived by the owner on Jan 19, 2019. It is now read-only.

Type annotations not marked as used #61

Closed
weirdpattern opened this issue Aug 23, 2017 · 0 comments
Closed

Type annotations not marked as used #61

weirdpattern opened this issue Aug 23, 2017 · 0 comments

Comments

@weirdpattern
Copy link
Collaborator

Type annotations are not marked as used by typescript/no-unused-vars, so eslint:recommended/no-unused-vars marks this as an error.

// type literal declared elsewhere
import { Nullable } from '../types';

const str: Nullable<string> = 'hello';
console.log(str);

I know there is still a lot of work to do before we can say this rule is working as expected, but I think adding this won't hurt... current work is being tracked in the typescript-eslint-parser repo.

weirdpattern added a commit to weirdpattern/eslint-plugin-typescript that referenced this issue Aug 23, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant