Skip to content
This repository has been archived by the owner on Dec 5, 2024. It is now read-only.

Commit

Permalink
Merge pull request #47 from tobiipro/allow-trivial-arrow
Browse files Browse the repository at this point in the history
allow trivial arrow functions, useful for mapping functions where e.g…
  • Loading branch information
andreineculau authored Feb 27, 2020
2 parents 1a4ee92 + 328fae6 commit 2a0ac0a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion configs/basic.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ module.exports = {
multiline: true,
minItems: 1
}],
'arrow-body-style': ['error', 'always'],
'arrow-body-style': 'error',
'arrow-parens': 'error',
'arrow-spacing': 'error',
'block-scoped-var': 'error',
Expand Down
4 changes: 2 additions & 2 deletions configs/proper-arrows.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,11 @@ module.exports = {
ternatry: true,
chained: true,
sequence: true,
trivial: true
trivial: false
}],
'@getify/proper-arrows/this': ['error', 'nested', {
'no-global': true,
trivial: true
trivial: false
}]
}
};

0 comments on commit 2a0ac0a

Please sign in to comment.