eslint: Enable "no-whitespace-before-property".

This commit is contained in:
Shubham Dhama 2018-05-31 12:25:18 +05:30 committed by Tim Abbott
parent cd1233d3f7
commit e4e47a41d2
2 changed files with 2 additions and 2 deletions

View File

@ -330,7 +330,7 @@
// Updated regex expressions are currently being tested in casper
// files and will decide about a potential future enforcement of this rule.
"no-useless-escape": 0,
"no-whitespace-before-property": 0,
"no-whitespace-before-property": 2,
"no-with": 2,
"one-var": [ "error", "never" ],
"padded-blocks": 0,

View File

@ -754,7 +754,7 @@ exports.by_near_uri = function (message_id) {
exports.by_conversation_and_time_uri = function (message, is_absolute_url) {
var absolute_url = "";
if (is_absolute_url) {
absolute_url = window.location .protocol + "//" +
absolute_url = window.location.protocol + "//" +
window.location.host + "/" + window.location.pathname.split('/')[1];
}
if (message.type === "stream") {