Bug 1372427 - enforce no spacing before semi-colons, but spacing after. r=mattn draft
authorJonathan Guillotte-Blouin <jguillotteblouin@mozilla.com>
Wed, 14 Jun 2017 18:13:15 -0700
changeset 597799 06de2a7b088f284f1b8c89c1a75d33d877af0b5f
parent 597798 a97aa13abfe0fe907ce6a0ec39f200faca1ac870
child 597800 7921e6500579492281a42afe296cb12c051b4bf4
push id65027
push userbmo:jguillotteblouin@mozilla.com
push dateTue, 20 Jun 2017 23:30:25 +0000
reviewersmattn
bugs1372427
milestone56.0a1
Bug 1372427 - enforce no spacing before semi-colons, but spacing after. r=mattn auto --fix MozReview-Commit-ID: 8QLHNfXlwBQ
toolkit/components/satchel/.eslintrc.js
toolkit/components/satchel/FormHistory.jsm
--- a/toolkit/components/satchel/.eslintrc.js
+++ b/toolkit/components/satchel/.eslintrc.js
@@ -50,10 +50,11 @@ module.exports = {
     }],
     "no-throw-literal": "error",
     "padded-blocks": ["error", "never"],
     radix: "error",
     "array-bracket-spacing": ["error", "never"],
     "space-in-parens": ["error", "never"],
     "comma-dangle": ["error", "always-multiline"],
     "dot-notation": "error",
+    "semi-spacing": ["error", {"before": false, "after": true}],
   },
 };
--- a/toolkit/components/satchel/FormHistory.jsm
+++ b/toolkit/components/satchel/FormHistory.jsm
@@ -353,17 +353,17 @@ function makeMoveToDeletedStatement(aGui
   return null;
 }
 
 function generateGUID() {
   // string like: "{f60d9eac-9421-4abc-8491-8e8322b063d4}"
   let uuid = uuidService.generateUUID().toString();
   let raw = ""; // A string with the low bytes set to random values
   let bytes = 0;
-  for (let i = 1; bytes < 12 ; i += 2) {
+  for (let i = 1; bytes < 12; i += 2) {
     // Skip dashes
     if (uuid[i] == "-") {
       i++;
     }
     let hexVal = parseInt(uuid[i] + uuid[i + 1], 16);
     raw += String.fromCharCode(hexVal);
     bytes++;
   }