[Pkg-javascript-commits] [backbone] 98/173: Add ESLint rule: no-unused-expressions

Jonas Smedegaard dr at jones.dk
Wed Aug 31 07:44:08 UTC 2016


This is an automated email from the git hooks/post-receive script.

js pushed a commit to branch master
in repository backbone.

commit edbfaaed56d3be3a6921bdd4b27ca680296f3ad5
Author: Jordan Eldredge <jordan at jordaneldredge.com>
Date:   Sun Dec 20 11:31:54 2015 -0800

    Add ESLint rule: no-unused-expressions
---
 .eslintrc | 1 +
 1 file changed, 1 insertion(+)

diff --git a/.eslintrc b/.eslintrc
index 2017362..682e26b 100644
--- a/.eslintrc
+++ b/.eslintrc
@@ -66,6 +66,7 @@
     "no-undefined": 2,
     "no-unneeded-ternary": 2,
     "no-unreachable": 2,
+    "no-unused-expressions": [2, {"allowTernary": true, "allowShortCircuit": true}],
     "no-with": 2,
     "object-curly-spacing": [2, "never"],
     "quote-props": [1, "consistent-as-needed"],

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/backbone.git



More information about the Pkg-javascript-commits mailing list