From 641a3a28e7c5d5d42f2ab70ed382f1e7817b00da Mon Sep 17 00:00:00 2001 From: Aaron Cannon Date: Fri, 23 Sep 2016 12:38:14 -0500 Subject: [PATCH] Relaxed eslint rule no-unused-expressions Now allows the use of short circuit and ternary expressions. --- packages/eslint-config-react-app/index.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/packages/eslint-config-react-app/index.js b/packages/eslint-config-react-app/index.js index c0cfc0ae437..ef369e359c3 100644 --- a/packages/eslint-config-react-app/index.js +++ b/packages/eslint-config-react-app/index.js @@ -127,7 +127,10 @@ module.exports = { 'no-undef': 'error', 'no-unexpected-multiline': 'warn', 'no-unreachable': 'warn', - 'no-unused-expressions': 'warn', + 'no-unused-expressions': ['warn', { + 'allowShortCircuit': true, + 'allowTernary': true + }], 'no-unused-labels': 'warn', 'no-unused-vars': ['warn', { vars: 'local',