eslint: Enable prefer-arrow-callback.

Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
Anders Kaseorg
2020-07-01 16:45:54 -07:00
committed by Tim Abbott
parent 960174408f
commit a79322bc94
160 changed files with 873 additions and 1012 deletions

View File

@@ -128,7 +128,7 @@ exports.activate = function (opts) {
const html = render_widgets_tictactoe_widget(widget_data);
elem.html(html);
elem.find("button.tictactoe-square").on('click', function (e) {
elem.find("button.tictactoe-square").on('click', (e) => {
e.stopPropagation();
const str_idx = $(e.target).attr('data-idx');
const idx = parseInt(str_idx, 10);