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:
@@ -1,7 +1,7 @@
|
||||
// @flow
|
||||
import { type Context } from "koa";
|
||||
import { Document, Collection, Event } from "../models";
|
||||
import { sequelize } from "../sequelize";
|
||||
import { type Context } from "koa";
|
||||
|
||||
export default async function documentMover({
|
||||
user,
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
/* eslint-disable flowtype/require-valid-file-annotation */
|
||||
import documentMover from "../commands/documentMover";
|
||||
import { flushdb, seed } from "../test/support";
|
||||
import { buildDocument, buildCollection } from "../test/factories";
|
||||
import { flushdb, seed } from "../test/support";
|
||||
|
||||
beforeEach(flushdb);
|
||||
beforeEach(() => flushdb());
|
||||
|
||||
describe("documentMover", async () => {
|
||||
describe("documentMover", () => {
|
||||
const ip = "127.0.0.1";
|
||||
|
||||
it("should move within a collection", async () => {
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
// @flow
|
||||
import { uniqBy } from "lodash";
|
||||
import { User, Event, Team } from "../models";
|
||||
import mailer from "../mailer";
|
||||
import { User, Event, Team } from "../models";
|
||||
import { sequelize } from "../sequelize";
|
||||
|
||||
type Invite = { name: string, email: string };
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
/* eslint-disable flowtype/require-valid-file-annotation */
|
||||
import userInviter from "../commands/userInviter";
|
||||
import { flushdb } from "../test/support";
|
||||
import { buildUser } from "../test/factories";
|
||||
import { flushdb } from "../test/support";
|
||||
|
||||
beforeEach(flushdb);
|
||||
beforeEach(() => flushdb());
|
||||
|
||||
describe("userInviter", async () => {
|
||||
describe("userInviter", () => {
|
||||
const ip = "127.0.0.1";
|
||||
|
||||
it("should return sent invites", async () => {
|
||||
|
||||
Reference in New Issue
Block a user