Skip to content

Commit

Permalink
Allow implicit return type in IFFEs and expressions
Browse files Browse the repository at this point in the history
  • Loading branch information
leroykorterink committed Nov 7, 2024
1 parent 93dbc5e commit 1aff390
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/typescript.js
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down

0 comments on commit 1aff390

Please sign in to comment.