Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork2.8k
Closed
Description
Repro
{"extends":"plugin:@typescript-eslint/recommended"}
constMyComp:React.FC<MyProps>=(props): ????=>{return(<div>HelloWorld</div>);};
What's the correct/recommended return type for the function when this rule tells me that I am required to use one?
I would assume it's inferred, but that doesn't seem to happen?
Versions
package | version |
---|---|
@typescript-eslint/eslint-plugin | 1.13.0 |
@typescript-eslint/parser | 1.13.0 |
TypeScript | 3.4.3 |
ESLint | 5.16.0 |
node | 10.15.3 |
npm | 6.4.1 |