Skip to content

Commit

Permalink
Upgrade lots of packages (including an upgrade from next 10 to 13) (#57)
Browse files Browse the repository at this point in the history
- Upgrade all packages (including next) to latest, except:
  - Apollo microservices (there's an issue with how we return
    `apolloServer.createHandler` to the caller as a default export)
  - `graphql` (for compatibility with peer dependencies)
- Also upgrades to the AWS SDK v3 instead of v2 for SES integration.
- Also switches from `react-toast-notifications` (deprecated) to `react-hot-toast`
- Also switches from `react-dnd` (dying) to `@dnd-kit` (it's so much better, I deleted *so* much bespoke code)
- Also switches from `graphql-iso-date` to `graphql-scalars`
  • Loading branch information
elijahcarrel authored Nov 5, 2022
1 parent 0247100 commit 1a92764
Show file tree
Hide file tree
Showing 54 changed files with 17,281 additions and 6,818 deletions.
22 changes: 17 additions & 5 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,15 +1,27 @@
module.exports = {
extends: "airbnb-typescript-prettier",
extends: ["airbnb-typescript-prettier", "plugin:@next/next/recommended"],
rules: {
"import/prefer-default-export": 0,
"react/jsx-props-no-spreading": 0,
"react/require-default-props": 0,
"no-unused-vars": [
"import/prefer-default-export": "off",
"react/jsx-props-no-spreading": "off",
"react/require-default-props": "off",
"react/function-component-definition": [
"error",
{
namedComponents: "arrow-function",
unnamedComponents: "arrow-function",
},
],
"no-use-before-define": "off",
"@typescript-eslint/no-use-before-define": ["error"],
"import/extensions": "off",
"no-unused-vars": "off",
"@typescript-eslint/no-unused-vars": [
"error",
{
argsIgnorePattern: "^_",
varsIgnorePattern: "^_",
},
],
"react/jsx-no-useless-fragment": ["error", { allowExpressions: true }],
},
};
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,5 @@ bundle
.next
.env
.vercel
tsconfig.tsbuildinfo
next-env.d.ts
18 changes: 18 additions & 0 deletions api/.eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
module.exports = {
extends: ["airbnb-typescript-prettier"],
rules: {
"import/prefer-default-export": "off",
"no-use-before-define": "off",
"@typescript-eslint/no-use-before-define": ["error"],
"import/extensions": "off",
"no-unused-vars": "off",
"@typescript-eslint/no-unused-vars": [
"error",
{
argsIgnorePattern: "^_",
varsIgnorePattern: "^_",
},
],
},
root: true,
};
3 changes: 2 additions & 1 deletion api/.gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
.vercel
.vercel
tsconfig.tsbuildinfo
Loading

1 comment on commit 1a92764

@vercel
Copy link

@vercel vercel bot commented on 1a92764 Nov 5, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.