From ed47fb73a87dcd33a3db0f0ee2f623676ebd53ba Mon Sep 17 00:00:00 2001 From: Miodec Date: Mon, 12 Aug 2024 14:31:54 +0200 Subject: [PATCH] chore: allow expressions in explicit-function-return-type rule --- packages/eslint-config/index.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/packages/eslint-config/index.js b/packages/eslint-config/index.js index 37ffb2691..d2f59e23b 100644 --- a/packages/eslint-config/index.js +++ b/packages/eslint-config/index.js @@ -91,7 +91,12 @@ module.exports = { "error", { ignoreArrowShorthand: true }, ], - "@typescript-eslint/explicit-function-return-type": ["error"], + "@typescript-eslint/explicit-function-return-type": [ + "error", + { + allowExpressions: true, + }, + ], "@typescript-eslint/ban-ts-comment": "off", "@typescript-eslint/no-empty-function": "error", "@typescript-eslint/no-unused-vars": [