client/js: format code to ESLint

This commit is contained in:
Shyam Sunder
2020-06-04 14:09:35 -04:00
parent 48c9001194
commit 4329b1620f
67 changed files with 1150 additions and 533 deletions

View File

@ -34,7 +34,9 @@ class CommentsController {
requestPage: (offset, limit) => {
return PostList.search(
'sort:comment-date comment-count-min:1',
offset, limit, fields);
offset,
limit,
fields);
},
pageRenderer: pageCtx => {
Object.assign(pageCtx, {
@ -68,9 +70,10 @@ class CommentsController {
e.detail.comment.delete()
.catch(error => window.alert(error.message));
}
};
}
module.exports = router => {
router.enter(['comments'],
(ctx, next) => { new CommentsController(ctx); });
};
router.enter(['comments'], (ctx, next) => {
new CommentsController(ctx);
});
}