From e3c9664d37b50280742002de076a1dac06222891 Mon Sep 17 00:00:00 2001 From: nuro <4991309+NuroDev@users.noreply.github.com> Date: Thu, 31 Mar 2022 01:34:27 +0100 Subject: [PATCH] Added ESLint config (#84) * Added ESLint * Fixed linting warnings / errors * Update Cloudinary.tsx * Update Cloudinary.tsx Co-authored-by: Steven Tey --- .eslintrc.json | 3 + components/Cloudinary.tsx | 6 +- components/app/DomainCard.tsx | 5 +- components/app/Layout.tsx | 3 +- components/mdx/Tweet.tsx | 16 +- components/sites/Layout.tsx | 9 +- package-lock.json | 3989 ++++++++++++++++++++++++++++-- package.json | 2 + pages/_sites/[site]/[slug].tsx | 3 +- pages/app/index.tsx | 7 +- pages/app/login.tsx | 17 +- pages/app/post/[id]/index.tsx | 85 +- pages/app/site/[id]/drafts.tsx | 5 +- pages/app/site/[id]/index.tsx | 7 +- pages/app/site/[id]/settings.tsx | 6 +- 15 files changed, 3855 insertions(+), 308 deletions(-) create mode 100644 .eslintrc.json diff --git a/.eslintrc.json b/.eslintrc.json new file mode 100644 index 0000000..bffb357 --- /dev/null +++ b/.eslintrc.json @@ -0,0 +1,3 @@ +{ + "extends": "next/core-web-vitals" +} diff --git a/components/Cloudinary.tsx b/components/Cloudinary.tsx index 9aa72b2..f472b44 100644 --- a/components/Cloudinary.tsx +++ b/components/Cloudinary.tsx @@ -1,3 +1,5 @@ +/* eslint-disable */ + import Head from "next/head"; import type { MouseEvent, ReactNode } from "react"; @@ -46,8 +48,8 @@ export default function CloudinaryUploadWidget({ <> // this is Next.js specific, but if you're using something like Create - React App, // you could download the script in componentDidMount using - this method: https://stackoverflow.com/a/34425083/1424568 + // React App, you could download the script in componentDidMount using + // this method: https://stackoverflow.com/a/34425083/1424568