You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 19, 2019. It is now read-only.
What version of typescript-eslint-parser are you using?
18.0.0
What code were you trying to parse?
importReactfrom'react';importstyledfrom'styled-components';importCardContentfrom'@material-ui/core/CardContent';importTextFieldfrom'../../../components/TextField';importTitlefrom'../../../components/Title';importButtonfrom'../../../components/Button';constSendTransaction=props=>(<Content><Title>SendPayment</Title><Section><TextFieldname="receiveraddress"label="Receiver´s Address"value={props.receiveraddress}type="text"onChange={props.onChange}/></Section><Section><TextFieldname="receivername"label="Receiver´s Name (Optional)"value={props.receivername}type="text"onChange={props.onChange}/></Section><Section><TextFieldname="amount"label="Amount to Send"value={props.amount}type="text"{...props}/></Section><Section><ButtononClick={props.makeTransaction}text="Make Payment"/></Section></Content>);constContent=styled(CardContent)``;constSection=styled.div` padding: 10px;`;exportdefaultSendTransaction;
What did you expect to happen?
I should get errors for react/prop-types.
What version of TypeScript are you using?
3.0.3
What version of
typescript-eslint-parser
are you using?18.0.0
What code were you trying to parse?
What did you expect to happen?
I should get errors for
react/prop-types
.What happened?
No errors.
.eslintrc.json
Tried 2:
and:
Reason
It is due to the
{...props}
. As soon as I remove that, I get thereact/prop-types
errors.The text was updated successfully, but these errors were encountered: