mirror of https://github.com/zulip/zulip.git
eslint: Enable spaced-comment rule.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
parent
d55dc6f8f1
commit
7f89cb9535
|
@ -87,7 +87,7 @@
|
|||
}
|
||||
],
|
||||
"radix": "error",
|
||||
"spaced-comment": "off",
|
||||
"spaced-comment": ["error", "always", {"markers": ["/"]}],
|
||||
"strict": "error",
|
||||
"unicorn/consistent-function-scoping": "off",
|
||||
"unicorn/explicit-length-check": "off",
|
||||
|
|
|
@ -741,7 +741,7 @@ test("test_topic_edit", () => {
|
|||
"4:topic-10,1:topic-7,1:topic-6,1:topic-5,1:topic-4,1:topic-3,1:topic-2,1:topic-1",
|
||||
);
|
||||
|
||||
////////////////// test change topic //////////////////
|
||||
// ---------------- test change topic ----------------
|
||||
verify_topic_data(all_topics, stream1, topic6, messages[8].id, true);
|
||||
assert.equal(all_topics.get(get_topic_key(stream1, topic8)), undefined);
|
||||
|
||||
|
@ -754,7 +754,7 @@ test("test_topic_edit", () => {
|
|||
verify_topic_data(all_topics, stream1, topic8, messages[8].id, true);
|
||||
assert.equal(all_topics.get(get_topic_key(stream1, topic6)), undefined);
|
||||
|
||||
////////////////// test stream change //////////////////
|
||||
// ---------------- test stream change ----------------
|
||||
verify_topic_data(all_topics, stream1, topic1, messages[0].id, true);
|
||||
assert.equal(all_topics.get(get_topic_key(stream2, topic1)), undefined);
|
||||
|
||||
|
@ -765,7 +765,7 @@ test("test_topic_edit", () => {
|
|||
assert.equal(all_topics.get(get_topic_key(stream1, topic1)), undefined);
|
||||
verify_topic_data(all_topics, stream2, topic1, messages[0].id, true);
|
||||
|
||||
////////////////// test stream & topic change //////////////////
|
||||
// ---------------- test stream & topic change ----------------
|
||||
verify_topic_data(all_topics, stream2, topic1, messages[0].id, true);
|
||||
assert.equal(all_topics.get(get_topic_key(stream3, topic9)), undefined);
|
||||
|
||||
|
|
|
@ -26,9 +26,9 @@ import * as typeahead_helper from "./typeahead_helper";
|
|||
import * as user_groups from "./user_groups";
|
||||
import * as user_pill from "./user_pill";
|
||||
|
||||
//************************************
|
||||
// **********************************
|
||||
// AN IMPORTANT NOTE ABOUT TYPEAHEADS
|
||||
//************************************
|
||||
// **********************************
|
||||
// They do not do any HTML escaping, at all.
|
||||
// And your input to them is rendered as though it were HTML by
|
||||
// the default highlighter.
|
||||
|
|
Loading…
Reference in New Issue