Skip to content

Commit

Permalink
[eslint config] [base] no-unused-expressions: flesh out options
Browse files Browse the repository at this point in the history
Fixes airbnb#963.
  • Loading branch information
ljharb authored and jaylaw81 committed Sep 19, 2017
1 parent 80ac5ac commit b9d294c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/eslint-config-airbnb-base/rules/best-practices.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b9d294c

Please sign in to comment.