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 interfaces are considered not used by no-unused-vars rule #223
Closed
Description
What version of TypeScript are you using?
2.2.2
What version of typescript-eslint-parser
are you using?
2.1.0
What code were you trying to parse?
import SearchResult, { ISearchResultProps } from '../../components/SearchResult';
class SearchResultContainer extends React.Component<any, any> {
render() {
const { value, suggestions } = this.state;
const searchResultProps: ISearchResultProps = {
foo,
bar,
};
return (
<SearchResult {searchResultProps} />
);
}
}
What did you expect to happen?
All to be right with the world
What happened?
[eslint] 'ISearchResultProps' is defined but never used. (no-unused-vars)