Closed LucaPeng closed 5 years ago
It's not only decorators. I'm having the problem, that since 20.1.0 (including 20.1.1) all my proptypes in react are considered unused.
import { bool, number, string } from 'prop-types';
...
class MyClass extends PureComponent<Props, StateAttributes> {
public static propTypes = {
height: number.isRequired,
leftIcon: bool,
text: string,
value: string.isRequired
};
...
all the above are considered unused in > 20.1+ while fine in <= 20.0
What version of TypeScript are you using? 3.1.4
What version of
typescript-eslint-parser
are you using? 20.1.0What code were you trying to parse?
What did you expect to happen?
no eslint error for the 'observable' which is imported from mobx.
What happened?
[eslint] 'observable' is defined but never used.
This is happened for the 'observable' which is imported from mobx.