From dae81ed13df0d1bfa3e902de23cfb5048e42c665 Mon Sep 17 00:00:00 2001 From: merrywhether Date: Mon, 28 Aug 2023 14:31:43 -0700 Subject: [PATCH] fix(eslint-plugin): support JSX attrs in allowTypedFunctionExpressions --- .../rules/explicit-function-return-type.md | 4 + .../src/util/explicitReturnTypeUtils.ts | 75 ++++++++++++------- .../explicit-function-return-type.test.ts | 62 +++++++++++++++ 3 files changed, 113 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 0d0e476d576..5ed8aec0096 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