Skip to content

Commit

Permalink
Avoid explicit return arrows in object-shorthand rule (#76)
Browse files Browse the repository at this point in the history
  • Loading branch information
jonahsnider authored and sindresorhus committed Jan 9, 2022
1 parent 9aaf7f1 commit db4809a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions index.js
Expand Up @@ -542,6 +542,9 @@ module.exports = {
'object-shorthand': [
'error',
'always',
{
avoidExplicitReturnArrows: true,
},
],
'prefer-arrow-callback': [
'error',
Expand Down

0 comments on commit db4809a

Please sign in to comment.