[eslint config] [base] no-unused-expressions: flesh out options

Fixes #963.
This commit is contained in:
Jordan Harband
2016-07-25 12:39:31 -07:00
parent 1fb300c6c7
commit eea5f0f5f5

View File

@@ -189,7 +189,10 @@ module.exports = {
'no-unmodified-loop-condition': 0,
// disallow usage of expressions in statement position
'no-unused-expressions': 2,
'no-unused-expressions': [2, {
allowShortCircuit: false,
allowTernary: false,
}],
// disallow unused labels
// http://eslint.org/docs/rules/no-unused-labels