Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[explicit-function-return-type] Correct return type for React function components #814

Closed
Labels
package: eslint-pluginIssues related to @typescript-eslint/eslint-pluginquestionQuestions! (i.e. not a bug / enhancment / documentation)
@flopes89

Description

@flopes89

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

packageversion
@typescript-eslint/eslint-plugin1.13.0
@typescript-eslint/parser1.13.0
TypeScript3.4.3
ESLint5.16.0
node10.15.3
npm6.4.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    package: eslint-pluginIssues related to @typescript-eslint/eslint-pluginquestionQuestions! (i.e. not a bug / enhancment / documentation)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp