From 1aff390db2a29113bd2f0a2f2f8baffe19439a19 Mon Sep 17 00:00:00 2001 From: Leroy Korterink Date: Thu, 7 Nov 2024 17:28:03 +0100 Subject: [PATCH] Allow implicit return type in IFFEs and expressions --- src/typescript.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/typescript.js b/src/typescript.js index b8d5563..2180678 100644 --- a/src/typescript.js +++ b/src/typescript.js @@ -17,7 +17,13 @@ export const recommended = { fixStyle: 'inline-type-imports', }, ], - '@typescript-eslint/explicit-function-return-type': 'error', + '@typescript-eslint/explicit-function-return-type': [ + 'error', + { + allowExpressions: true, + allowIIFEs: true, + }, + ], '@typescript-eslint/explicit-member-accessibility': 'error', '@typescript-eslint/explicit-module-boundary-types': 'error', '@typescript-eslint/member-ordering': 'error',