Skip to content

Commit

Permalink
feat: enable arrow-body-style rule (#11)
Browse files Browse the repository at this point in the history
  • Loading branch information
fallenoak authored May 31, 2020
1 parent 3243dbb commit 6a9bfc6
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions rules/format.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@ module.exports = {
// https://eslint.org/docs/rules/array-bracket-spacing
'array-bracket-spacing': ['error', 'never'],

// Prohibit arrow function braces when possible
// https://eslint.org/docs/rules/arrow-body-style
'arrow-body-style': ['error', 'as-needed', {
requireReturnForObjectLiteral: false,
}],

// Require one true brace style, but allow single line braces
// https://eslint.org/docs/rules/brace-style
'brace-style': ['error', '1tbs', {
Expand Down

0 comments on commit 6a9bfc6

Please sign in to comment.