Relaxed eslint rule no-unused-expressions (#724)

Now allows the use of short circuit and ternary expressions.
This commit is contained in:
Aaron Cannon
2016-09-30 07:20:24 -05:00
committed by Dan Abramov
parent 91b32a2769
commit 90e3cc1fb2

View File

@@ -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',