[Pkg-mozext-commits] [tabmixplus] 31/73: Enable Eslint 'max-statements-per-line'

David Prévot taffit at moszumanska.debian.org
Mon May 9 02:30:52 UTC 2016


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

taffit pushed a commit to branch master
in repository tabmixplus.

commit d336fef2db09bee5541ad3017709aeff67aa40fc
Author: onemen <tabmix.onemen at gmail.com>
Date:   Mon Apr 4 17:38:33 2016 +0300

    Enable Eslint 'max-statements-per-line'
---
 .eslintrc.js                      | 2 +-
 chrome/content/session/session.js | 3 ++-
 modules/Shortcuts.jsm             | 3 ++-
 3 files changed, 5 insertions(+), 3 deletions(-)

diff --git a/.eslintrc.js b/.eslintrc.js
index c08f1cb..f20b086 100644
--- a/.eslintrc.js
+++ b/.eslintrc.js
@@ -187,7 +187,7 @@ module.exports = {
     "max-nested-callbacks": [0, 2],
     "max-params": [0, 3],
     "max-statements": [0, 10],
-    "max-statements-per-line": 0,
+    "max-statements-per-line": [2, {"max": 1}],
     "new-cap": 0,
     "new-parens": 2,
     "newline-after-var": 0,
diff --git a/chrome/content/session/session.js b/chrome/content/session/session.js
index 087e9cd..838d9cc 100644
--- a/chrome/content/session/session.js
+++ b/chrome/content/session/session.js
@@ -109,7 +109,8 @@ Tabmix.Sanitizer = {
       try {
         aFile.remove(aFile.isDirectory());
       } catch (ex) {
-        dump(ex + "\n"); Tabmix.assert(ex);
+        dump(ex + "\n");
+        Tabmix.assert(ex);
       } // couldn't remove the file - what now?
     }
   }
diff --git a/modules/Shortcuts.jsm b/modules/Shortcuts.jsm
index 4f2a5e2..394c1eb 100644
--- a/modules/Shortcuts.jsm
+++ b/modules/Shortcuts.jsm
@@ -563,7 +563,8 @@ function getFormattedKey(key) {
 
   if (key.key) {
     if (key.key == " ") {
-      key.key = ""; key.keycode = "VK_SPACE";
+      key.key = "";
+      key.keycode = "VK_SPACE";
     } else {
       val += key.key.toUpperCase();
     }

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



More information about the Pkg-mozext-commits mailing list