From eea5f0f5f5cf8a35cb5b618b0d7e247fbd569e34 Mon Sep 17 00:00:00 2001 From: Jordan Harband Date: Mon, 25 Jul 2016 12:39:31 -0700 Subject: [PATCH] [eslint config] [base] `no-unused-expressions`: flesh out options Fixes #963. --- packages/eslint-config-airbnb-base/rules/best-practices.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/packages/eslint-config-airbnb-base/rules/best-practices.js b/packages/eslint-config-airbnb-base/rules/best-practices.js index 9ad830b7..838ae713 100644 --- a/packages/eslint-config-airbnb-base/rules/best-practices.js +++ b/packages/eslint-config-airbnb-base/rules/best-practices.js @@ -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