-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Closed
Labels
package: eslint-pluginIssues related to @typescript-eslint/eslint-pluginIssues related to @typescript-eslint/eslint-pluginquestionQuestions! (i.e. not a bug / enhancment / documentation)Questions! (i.e. not a bug / enhancment / documentation)
Description
Repro
{
"extends": "plugin:@typescript-eslint/recommended"
}
const MyComp: React.FC<MyProps> = (props): ???? => {
return (
<div>Hello World</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 |
Metadata
Metadata
Assignees
Labels
package: eslint-pluginIssues related to @typescript-eslint/eslint-pluginIssues related to @typescript-eslint/eslint-pluginquestionQuestions! (i.e. not a bug / enhancment / documentation)Questions! (i.e. not a bug / enhancment / documentation)