eslint: Enable arrow-parens.

Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
Anders Kaseorg
2020-07-01 16:39:34 -07:00
committed by Tim Abbott
parent d51afcf485
commit b0253c5a2e
96 changed files with 240 additions and 238 deletions

View File

@@ -85,13 +85,13 @@ Handlebars.registerHelper('tr', function (context, options) {
// 1. `context` is very important. It can be `this` or an
// object or key of the current context.
// 2. Use `__` instead of `{{` and `}}` to declare expressions
const result = i18n.t(options.fn(context).trim().split("\n").map(s => s.trim()).join(" "), context);
const result = i18n.t(options.fn(context).trim().split("\n").map((s) => s.trim()).join(" "), context);
return new Handlebars.SafeString(result);
});
Handlebars.registerHelper(
"rendered_markdown",
content => new Handlebars.SafeString(util.clean_user_content_links(content))
(content) => new Handlebars.SafeString(util.clean_user_content_links(content))
);
window.templates = exports;