Skip to content

Commit f86a08b

Browse files
ljharbhibearpanda
authored andcommitted
[eslint config] [base] no-unused-expressions: flesh out options
Fixes airbnb#963.
1 parent 37abd52 commit f86a08b

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

packages/eslint-config-airbnb-base/rules/best-practices.js

+4-1
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,10 @@ module.exports = {
189189
'no-unmodified-loop-condition': 0,
190190

191191
// disallow usage of expressions in statement position
192-
'no-unused-expressions': 2,
192+
'no-unused-expressions': [2, {
193+
allowShortCircuit: false,
194+
allowTernary: false,
195+
}],
193196

194197
// disallow unused labels
195198
// http://eslint.org/docs/rules/no-unused-labels

0 commit comments

Comments
 (0)