Skip to content

Commit

Permalink
Merge pull request #1862 from mightyiam/arrow-body-style
Browse files Browse the repository at this point in the history
arrow body style
  • Loading branch information
mightyiam authored Oct 26, 2024
2 parents 2ade371 + 19aa4eb commit 3e467a3
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
5 changes: 5 additions & 0 deletions src/rules.ts
Original file line number Diff line number Diff line change
Expand Up @@ -300,6 +300,11 @@ export const eslintRules: Record<string, TSESLint.SharedConfig.RuleEntry> = {
checkForEach: false,
},
],
'arrow-body-style': [
'error',
'as-needed',
{ requireReturnForObjectLiteral: false },
],
'constructor-super': ['error'],
curly: ['error', 'multi-line'],
'default-case-last': ['error'],
Expand Down
5 changes: 5 additions & 0 deletions src/test/_expected-exported-value.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,11 @@ export const expectedEslintRules: Record<
checkForEach: false,
},
],
'arrow-body-style': [
'error',
'as-needed',
{ requireReturnForObjectLiteral: false },
],
'class-methods-use-this': ['off'],
'constructor-super': ['error'],
curly: ['error', 'multi-line'],
Expand Down
1 change: 0 additions & 1 deletion src/test/_rules_to_consider.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
export const eslintRulesToConsider = [
'arrow-body-style',
'block-scoped-var',
'camelcase',
'capitalized-comments',
Expand Down

0 comments on commit 3e467a3

Please sign in to comment.