chore: Upgrade Prettier 1.8 -> 2.0 (#1436)

This commit is contained in:
Tom Moor
2020-08-08 18:53:11 -07:00
committed by GitHub
parent 68dcb4de5f
commit e312b264a6
218 changed files with 1156 additions and 1169 deletions

View File

@ -8,7 +8,7 @@ import * as Slack from "../slack";
const router = new Router();
// triggered by a user posting a getoutline.com link in Slack
router.post("hooks.unfurl", async ctx => {
router.post("hooks.unfurl", async (ctx) => {
const { challenge, token, event } = ctx.body;
if (challenge) return (ctx.body = ctx.body.challenge);
@ -49,7 +49,7 @@ router.post("hooks.unfurl", async ctx => {
});
// triggered by interactions with actions, dialogs, message buttons in Slack
router.post("hooks.interactive", async ctx => {
router.post("hooks.interactive", async (ctx) => {
const { payload } = ctx.body;
ctx.assertPresent(payload, "payload is required");
@ -98,7 +98,7 @@ router.post("hooks.interactive", async ctx => {
});
// triggered by the /outline command in Slack
router.post("hooks.slack", async ctx => {
router.post("hooks.slack", async (ctx) => {
const { token, team_id, user_id, text = "" } = ctx.body;
ctx.assertPresent(token, "token is required");
ctx.assertPresent(team_id, "team_id is required");