-
- Notifications
You must be signed in to change notification settings - Fork 2.8k
Closed
Labels
Description
Hi!
I think there is a bug with async functions.
property: "no-unused-prop-types"
parser: "babel-eslint@7.1.1"
where: "async functions"
example:
{ code: [ 'export class Example extends Component {', ' static propTypes = {', ' failed: PropTypes.func.isRequired,', ' loadUserProfile: PropTypes.func.isRequired,', ' }', ' handleLogin = async () => {', ' await this.props.failed();', ' await this.props.loadUserProfile();', ' };', '}' ].join('\n'), parser: 'babel-eslint' },
alexmngn, loicplaire, GGAlanSmithee, mqklin, hakatashi and 14 morehenrikra and lednhatkhanh