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,6 +1,6 @@
// @flow
import JWT from "jsonwebtoken";
import subMinutes from "date-fns/sub_minutes";
import JWT from "jsonwebtoken";
import { AuthenticationError } from "../errors";
import { User } from "../models";

View File

@@ -1,7 +1,7 @@
// @flow
import * as React from "react";
import fs from "fs";
import path from "path";
import * as React from "react";
import webpackConfig from "../../webpack.config";
const PUBLIC_PATH = webpackConfig.output.publicPath;

View File

@@ -1,6 +1,6 @@
// @flow
import Redis from "ioredis";
import Queue from "bull";
import Redis from "ioredis";
import { client, subscriber } from "../redis";
export function createQueue(name: string) {

View File

@@ -1,11 +1,11 @@
// @flow
import crypto from "crypto";
import * as Sentry from "@sentry/node";
import AWS from "aws-sdk";
import addHours from "date-fns/add_hours";
import format from "date-fns/format";
import AWS from "aws-sdk";
import invariant from "invariant";
import fetch from "isomorphic-fetch";
import * as Sentry from "@sentry/node";
const AWS_SECRET_ACCESS_KEY = process.env.AWS_SECRET_ACCESS_KEY;
const AWS_ACCESS_KEY_ID = process.env.AWS_ACCESS_KEY_ID;

View File

@@ -2,10 +2,10 @@
import crypto from "crypto";
import invariant from "invariant";
import fetch from "isomorphic-fetch";
import { client } from "../redis";
import packageInfo from "../../package.json";
import { User, Team, Collection, Document } from "../models";
import { client } from "../redis";
const UPDATES_URL = "https://updates.getoutline.com";
const UPDATES_KEY = "UPDATES_KEY";

View File

@@ -1,8 +1,8 @@
// @flow
import fs from "fs";
import * as Sentry from "@sentry/node";
import JSZip from "jszip";
import tmp from "tmp";
import * as Sentry from "@sentry/node";
import { Attachment, Collection, Document } from "../models";
import { getImageByKey } from "./s3";