[Pkg-javascript-commits] [backbone] 83/173: Add ESLint rule: wrap-iife (inside)

Jonas Smedegaard dr at jones.dk
Wed Aug 31 07:44:05 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 21f1262abeaa4b953d5b6060720d6ad2b51de63a
Author: Jordan Eldredge <jordan at jordaneldredge.com>
Date:   Tue Dec 15 21:58:58 2015 -0800

    Add ESLint rule: wrap-iife (inside)
---
 .eslintrc   | 3 ++-
 backbone.js | 4 ++--
 2 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/.eslintrc b/.eslintrc
index b92ad55..e04772f 100644
--- a/.eslintrc
+++ b/.eslintrc
@@ -71,6 +71,7 @@
     "space-return-throw-case": 2,
     "space-unary-ops": [2, { "words": true, "nonwords": false }],
     "use-isnan": 2,
-    "valid-typeof": 2
+    "valid-typeof": 2,
+    "wrap-iife": [2, "inside"]
   }
 }
diff --git a/backbone.js b/backbone.js
index d5e82e7..498f894 100644
--- a/backbone.js
+++ b/backbone.js
@@ -31,7 +31,7 @@
     root.Backbone = factory(root, {}, root._, (root.jQuery || root.Zepto || root.ender || root.$));
   }
 
-}(function(root, Backbone, _, $) {
+})(function(root, Backbone, _, $) {
 
   // Initial Setup
   // -------------
@@ -1894,4 +1894,4 @@
 
   return Backbone;
 
-}));
+});

-- 
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