[explicit-function-return-type]false positives for functions types #327
Labels
duplicate
This issue or pull request already exists
enhancement: plugin rule option
New rule option for an existing eslint-plugin rule
package: eslint-plugin
Issues related to @typescript-eslint/eslint-plugin
When defining functions through the arrow syntax, the return type is defined in the type, not in the return itself.
The small example isn't the most useful piece of code, but it's mainly an issue when using
FunctionComponent
s from react (They're the way forward, so that's only going to be more painful in the future) or any library defining function interfaces really.The text was updated successfully, but these errors were encountered: