Skip to content

Commit

Permalink
Relaxed eslint rule no-unused-expressions (facebook#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 feiqitian committed Oct 25, 2016
1 parent d5ff014 commit 0c8a3bf
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 0c8a3bf

Please sign in to comment.