Skip to content

Commit

Permalink
feat(eslint): enable allowExpressions in `@typescript-eslint/explic…
Browse files Browse the repository at this point in the history
…it-function-return-type`

Resolves #51

BREAKING CHANGE: Types are no longer required in expressions (callbacks), as the parent will flag
unexpected return types.
  • Loading branch information
mrmckeb committed Aug 29, 2023
1 parent ec761d9 commit 6b4214f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion eslint/rules/typescript/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,10 @@ module.exports = {
*
* 🚫 Not fixable - https://typescript-eslint.io/rules/explicit-function-return-type/
*/
'@typescript-eslint/explicit-function-return-type': 'warn',
'@typescript-eslint/explicit-function-return-type': [
'warn',
{ allowExpressions: true },
],
/**
* Require using function property types in method signatures.
*
Expand Down

0 comments on commit 6b4214f

Please sign in to comment.