From 1e3975cffaea7a444cd13914afab93c5942599bb Mon Sep 17 00:00:00 2001 From: Feross Aboukhadijeh Date: Wed, 8 Feb 2017 19:43:25 -0800 Subject: [PATCH] Disallow Unused Expressions (no-unused-expressions) Allow short circuiting and ternary expressions, since those are very common but not ideal IMO. Fixes: https://github.com/feross/standard/issues/690 --- eslintrc.json | 1 + 1 file changed, 1 insertion(+) diff --git a/eslintrc.json b/eslintrc.json index 831795a4..75028620 100644 --- a/eslintrc.json +++ b/eslintrc.json @@ -127,6 +127,7 @@ "no-unreachable": "error", "no-unsafe-finally": "error", "no-unsafe-negation": "error", + "no-unused-expressions": ["error", { "allowShortCircuit": true, "allowTernary": true }], "no-unused-vars": ["error", { "vars": "all", "args": "none" }], "no-useless-call": "error", "no-useless-computed-key": "error",