Skip to content

Commit

Permalink
chore: disable option "requireReturnForObjectLiteral" in "arrow-body-…
Browse files Browse the repository at this point in the history
…style"
  • Loading branch information
wakamsha committed Mar 5, 2024
1 parent 31e3000 commit dafef4d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions rules/es6.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
* This file is a copy of https://github.com/airbnb/javascript/blob/master/packages/eslint-config-airbnb-base/rules/es6.js
* with the following modifications:
*
* - Turn `requireReturnForObjectLiteral` to `true` in `arrow-body-style`
* - Turn off `no-useless-constructor` because it's unnecessary with TypeScript
*/

Expand All @@ -18,7 +17,7 @@ module.exports = {
'error',
'as-needed',
{
requireReturnForObjectLiteral: true,
requireReturnForObjectLiteral: false,
},
],

Expand Down

0 comments on commit dafef4d

Please sign in to comment.