chore: Upgrade Babel, Jest, Eslint (#1437)

* chore: Upgrade Prettier 1.8 -> 2.0

* chore: Upgrade Babel 6 -> 7

* chore: Upgrade eslint plugins

* chore: Add eslint import/order rules

* chore: Update flow-typed deps
This commit is contained in:
Tom Moor
2020-08-08 22:53:59 -07:00
committed by GitHub
parent e312b264a6
commit 449dc55aaa
317 changed files with 16474 additions and 12183 deletions

View File

@@ -1,13 +1,13 @@
// @flow
import Router from "koa-router";
import mailer from "../mailer";
import subMinutes from "date-fns/sub_minutes";
import { getUserForEmailSigninToken } from "../utils/jwt";
import { User, Team } from "../models";
import Router from "koa-router";
import { AuthorizationError } from "../errors";
import mailer from "../mailer";
import auth from "../middlewares/authentication";
import methodOverride from "../middlewares/methodOverride";
import validation from "../middlewares/validation";
import auth from "../middlewares/authentication";
import { AuthorizationError } from "../errors";
import { User, Team } from "../models";
import { getUserForEmailSigninToken } from "../utils/jwt";
const router = new Router();

View File

@@ -1,11 +1,11 @@
// @flow
import Sequelize from "sequelize";
import crypto from "crypto";
import { OAuth2Client } from "google-auth-library";
import Router from "koa-router";
import { capitalize } from "lodash";
import { OAuth2Client } from "google-auth-library";
import { User, Team, Event } from "../models";
import Sequelize from "sequelize";
import auth from "../middlewares/authentication";
import { User, Team, Event } from "../models";
const Op = Sequelize.Op;

View File

@@ -1,16 +1,16 @@
// @flow
import bodyParser from "koa-bodyparser";
import Koa from "koa";
import Router from "koa-router";
import addMonths from "date-fns/add_months";
import validation from "../middlewares/validation";
import Koa from "koa";
import bodyParser from "koa-bodyparser";
import Router from "koa-router";
import auth from "../middlewares/authentication";
import { getCookieDomain } from "../utils/domains";
import validation from "../middlewares/validation";
import { Team } from "../models";
import { getCookieDomain } from "../utils/domains";
import slack from "./slack";
import google from "./google";
import email from "./email";
import google from "./google";
import slack from "./slack";
const app = new Koa();
const router = new Router();

View File

@@ -1,10 +1,9 @@
// @flow
import Sequelize from "sequelize";
import Router from "koa-router";
import addHours from "date-fns/add_hours";
import auth from "../middlewares/authentication";
import { getCookieDomain } from "../utils/domains";
import Router from "koa-router";
import Sequelize from "sequelize";
import { slackAuth } from "../../shared/utils/routeHelpers";
import auth from "../middlewares/authentication";
import {
Authentication,
Collection,
@@ -14,6 +13,7 @@ import {
Team,
} from "../models";
import * as Slack from "../slack";
import { getCookieDomain } from "../utils/domains";
const Op = Sequelize.Op;
const router = new Router();