From 212c69d303356f81ccdfc15f450aa3ce79aa21cd Mon Sep 17 00:00:00 2001 From: diced Date: Sat, 25 Sep 2021 09:39:51 -0700 Subject: [PATCH] fix: add comma dangles --- package.json | 2 +- src/components/Backdrop.tsx | 2 +- src/components/Card.tsx | 2 +- src/components/Image.tsx | 6 +++--- src/components/Layout.tsx | 24 +++++++++++----------- src/components/Theming.tsx | 8 ++++---- src/components/pages/Dashboard.tsx | 8 ++++---- src/components/pages/Manage.tsx | 14 ++++++------- src/components/pages/Upload.tsx | 6 +++--- src/components/pages/Users.tsx | 12 +++++------ src/lib/hooks/useFetch.ts | 2 +- src/lib/middleware/withZipline.ts | 14 ++++++------- src/lib/themes/ayu_dark.ts | 4 ++-- src/lib/themes/ayu_light.ts | 4 ++-- src/lib/themes/ayu_mirage.ts | 4 ++-- src/lib/themes/dark.ts | 4 ++-- src/lib/themes/dark_blue.ts | 4 ++-- src/lib/themes/dracula.ts | 4 ++-- src/lib/themes/index.ts | 6 +++--- src/lib/themes/nord.ts | 4 ++-- src/lib/themes/polar.ts | 4 ++-- src/pages/api/auth/create.ts | 8 ++++---- src/pages/api/auth/login.ts | 8 ++++---- src/pages/api/stats.ts | 18 ++++++++-------- src/pages/api/upload.ts | 8 ++++---- src/pages/api/user/files.ts | 14 ++++++------- src/pages/api/user/index.ts | 32 ++++++++++++++--------------- src/pages/api/user/recent.ts | 6 +++--- src/pages/api/user/token.ts | 6 +++--- src/pages/api/users.ts | 12 +++++------ src/pages/auth/login.tsx | 6 +++--- yarn.lock | 33 ++++++++++++++++++++++-------- 32 files changed, 152 insertions(+), 137 deletions(-) diff --git a/package.json b/package.json index 6ca48b6..3654522 100644 --- a/package.json +++ b/package.json @@ -45,7 +45,7 @@ "@types/multer": "^1.4.6", "@types/node": "^15.12.2", "babel-plugin-transform-imports": "^2.0.0", - "eslint": "7.28.0", + "eslint": "^7.32.0", "eslint-config-next": "11.0.0", "husky": "^6.0.0", "npm-run-all": "^4.1.5", diff --git a/src/components/Backdrop.tsx b/src/components/Backdrop.tsx index bfc7b21..dd172f2 100644 --- a/src/components/Backdrop.tsx +++ b/src/components/Backdrop.tsx @@ -1,7 +1,7 @@ import React from 'react'; import { Backdrop as MuiBackdrop, - CircularProgress + CircularProgress, } from '@material-ui/core'; export default function Backdrop({ open }) { diff --git a/src/components/Card.tsx b/src/components/Card.tsx index 715f240..970b0cf 100644 --- a/src/components/Card.tsx +++ b/src/components/Card.tsx @@ -2,7 +2,7 @@ import React from 'react'; import { Card as MuiCard, CardContent, - Typography + Typography, } from '@material-ui/core'; export default function Card(props) { diff --git a/src/components/Image.tsx b/src/components/Image.tsx index acbedd0..010bdc4 100644 --- a/src/components/Image.tsx +++ b/src/components/Image.tsx @@ -8,7 +8,7 @@ import { Dialog, DialogTitle, DialogActions, - DialogContent + DialogContent, } from '@material-ui/core'; import AudioIcon from '@material-ui/icons/Audiotrack'; import copy from 'copy-to-clipboard'; @@ -16,7 +16,7 @@ import useFetch from 'hooks/useFetch'; export default function Image({ image, updateImages }) { const [open, setOpen] = useState(false); - const [t,] = useState(image.mimetype.split('/')[0]); + const [t] = useState(image.mimetype.split('/')[0]); const handleDelete = async () => { const res = await useFetch('/api/user/files', 'DELETE', { id: image.id }); @@ -40,7 +40,7 @@ export default function Image({ image, updateImages }) { 'video':