mirror of https://github.com/zulip/zulip.git
eslint: Enable "no-whitespace-before-property".
This commit is contained in:
parent
cd1233d3f7
commit
e4e47a41d2
|
@ -330,7 +330,7 @@
|
||||||
// Updated regex expressions are currently being tested in casper
|
// Updated regex expressions are currently being tested in casper
|
||||||
// files and will decide about a potential future enforcement of this rule.
|
// files and will decide about a potential future enforcement of this rule.
|
||||||
"no-useless-escape": 0,
|
"no-useless-escape": 0,
|
||||||
"no-whitespace-before-property": 0,
|
"no-whitespace-before-property": 2,
|
||||||
"no-with": 2,
|
"no-with": 2,
|
||||||
"one-var": [ "error", "never" ],
|
"one-var": [ "error", "never" ],
|
||||||
"padded-blocks": 0,
|
"padded-blocks": 0,
|
||||||
|
|
|
@ -754,7 +754,7 @@ exports.by_near_uri = function (message_id) {
|
||||||
exports.by_conversation_and_time_uri = function (message, is_absolute_url) {
|
exports.by_conversation_and_time_uri = function (message, is_absolute_url) {
|
||||||
var absolute_url = "";
|
var absolute_url = "";
|
||||||
if (is_absolute_url) {
|
if (is_absolute_url) {
|
||||||
absolute_url = window.location .protocol + "//" +
|
absolute_url = window.location.protocol + "//" +
|
||||||
window.location.host + "/" + window.location.pathname.split('/')[1];
|
window.location.host + "/" + window.location.pathname.split('/')[1];
|
||||||
}
|
}
|
||||||
if (message.type === "stream") {
|
if (message.type === "stream") {
|
||||||
|
|
Loading…
Reference in New Issue