Skip to content

Commit

Permalink
Relaxed eslint rule no-unused-expressions (#724)
Browse files Browse the repository at this point in the history
Now allows the use of short circuit and ternary expressions.
  • Loading branch information
cannona authored and gaearon committed Sep 30, 2016
1 parent 91b32a2 commit 90e3cc1
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/eslint-config-react-app/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,10 @@ module.exports = {
'no-undef': 'error',
'no-unexpected-multiline': 'warn',
'no-unreachable': 'warn',
'no-unused-expressions': 'warn',
'no-unused-expressions': ['warn', {
'allowShortCircuit': true,
'allowTernary': true
}],
'no-unused-labels': 'warn',
'no-unused-vars': ['warn', {
vars: 'local',
Expand Down

0 comments on commit 90e3cc1

Please sign in to comment.