add eslint rule for requiring semicolons, and then fixing the same issue in the code base

This commit is contained in:
Peter Snyder 2017-10-22 02:07:22 -05:00
parent 5ab89724b6
commit 1732d8fa96
4 changed files with 6 additions and 5 deletions

View file

@ -12,6 +12,7 @@
"rules": { "rules": {
"no-console": "off", "no-console": "off",
"no-trailing-spaces": "error", "no-trailing-spaces": "error",
"no-unused-vars": ["error", {"varsIgnorePattern": "ignore"}] "no-unused-vars": ["error", {"varsIgnorePattern": "ignore"}],
"semi": ["error", "always"]
} }
} }

View file

@ -180,7 +180,7 @@
url: details.url, url: details.url,
name: constants.cookieName, name: constants.cookieName,
value: encodedOptions value: encodedOptions
}) });
return { return {
responseHeaders: details.responseHeaders responseHeaders: details.responseHeaders

View file

@ -19,7 +19,7 @@ module.exports.constants = {
module.exports.pause = function (ms = 2000) { module.exports.pause = function (ms = 2000) {
return new Promise(function (resolve) { return new Promise(function (resolve) {
setTimeout(resolve, ms) setTimeout(resolve, ms);
}); });
}; };
@ -63,7 +63,7 @@ module.exports.promiseExtensionConfigPage = function (driver) {
const extensionId = match[1]; const extensionId = match[1];
driver.setContext(Context.CONTENT); driver.setContext(Context.CONTENT);
return driver.get(`moz-extension://${extensionId}/config/index.html`); return driver.get(`moz-extension://${extensionId}/config/index.html`);
}) });
}; };
module.exports.promiseAddonConfigButton = function (driver) { module.exports.promiseAddonConfigButton = function (driver) {

View file

@ -1,7 +1,7 @@
"use strict"; "use strict";
const utils = require("./lib/utils"); const utils = require("./lib/utils");
let testParams let testParams;
try { try {
testParams = require("../../test.config.js"); testParams = require("../../test.config.js");
} catch (e) { } catch (e) {