Skip to content

Commit

Permalink
feat!: arrow-body-style
Browse files Browse the repository at this point in the history
  • Loading branch information
mightyiam committed Oct 26, 2024
1 parent 646fa51 commit 19aa4eb
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
6 changes: 5 additions & 1 deletion src/rules.ts
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,11 @@ export const eslintRules: Record<string, TSESLint.SharedConfig.RuleEntry> = {
checkForEach: false,
},
],
'arrow-body-style': ['error', 'as-needed'],
'arrow-body-style': [
'error',
'as-needed',
{ requireReturnForObjectLiteral: false },
],
'constructor-super': ['error'],
curly: ['error', 'multi-line'],
'default-case-last': ['error'],
Expand Down
6 changes: 5 additions & 1 deletion src/test/_expected-exported-value.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,11 @@ export const expectedEslintRules: Record<
checkForEach: false,
},
],
'arrow-body-style': ['error', 'as-needed'],
'arrow-body-style': [
'error',
'as-needed',
{ requireReturnForObjectLiteral: false },
],
'class-methods-use-this': ['off'],
'constructor-super': ['error'],
curly: ['error', 'multi-line'],
Expand Down

0 comments on commit 19aa4eb

Please sign in to comment.