From be2777c5338669836d786f9a7806f499fd566dcd Mon Sep 17 00:00:00 2001 From: Risto Keravuori Date: Thu, 9 Nov 2023 20:33:58 -0800 Subject: [PATCH] fix(eslint-plugin): [explicit-function-return-type] support JSX attributes in `allowTypedFunctionExpressions` (#7553) --- .../rules/explicit-function-return-type.md | 4 + .../src/util/explicitReturnTypeUtils.ts | 77 ++++++---- .../explicit-function-return-type.test.ts | 137 ++++++++++++++++++ 3 files changed, 190 insertions(+), 28 deletions(-) diff --git a/packages/eslint-plugin/docs/rules/explicit-function-return-type.md b/packages/eslint-plugin/docs/rules/explicit-function-return-type.md index 3332f1d77ef..6aa1e621314 100644 --- a/packages/eslint-plugin/docs/rules/explicit-function-return-type.md +++ b/packages/eslint-plugin/docs/rules/explicit-function-return-type.md @@ -172,6 +172,10 @@ functionWithObjectArg({ return 1; }, }); + +const Comp: FC = () => { + return