Skip to content
This repository was archived by the owner on Mar 7, 2019. It is now read-only.

Commit 05b0539

Browse files
Flow return types are not needed if they can be inferred
1 parent b7d60b8 commit 05b0539

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

environments/flow/recommended.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,9 @@ module.exports = {
4343
'flowtype/require-parameter-type': 'error',
4444

4545
// Requires that functions have return type annotation.
46-
'flowtype/require-return-type': ['error', 'always'],
46+
'flowtype/require-return-type': ['error', 'always', {
47+
excludeArrowFunctions: 'expressionsOnly',
48+
}],
4749

4850
// Requires that all variable declarators have type annotations.
4951
'flowtype/require-variable-type': 'error',

0 commit comments

Comments
 (0)