From 90e3cc1fb24efc3328b7b6d4dc644c4dcb130051 Mon Sep 17 00:00:00 2001
From: Aaron Cannon <cannona@fireantproductions.com>
Date: Fri, 30 Sep 2016 07:20:24 -0500
Subject: [PATCH] Relaxed eslint rule no-unused-expressions (#724)

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 c0cfc0ae4..ef369e359 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',
-- 
GitLab