There was an error while loading. Please reload this page.
no-unused-expressions
1 parent 1fb300c commit eea5f0fCopy full SHA for eea5f0f
packages/eslint-config-airbnb-base/rules/best-practices.js
@@ -189,7 +189,10 @@ module.exports = {
189
'no-unmodified-loop-condition': 0,
190
191
// disallow usage of expressions in statement position
192
- 'no-unused-expressions': 2,
+ 'no-unused-expressions': [2, {
193
+ allowShortCircuit: false,
194
+ allowTernary: false,
195
+ }],
196
197
// disallow unused labels
198
// http://eslint.org/docs/rules/no-unused-labels
0 commit comments