Skip to content

Commit

Permalink
Use recommended ESLint rules and fix errors
Browse files Browse the repository at this point in the history
- Add ESLint rules from `eslint:recommended` and `next/typescript`
- Resolve subsequent lint errors; still have warnings about next/image
- Remove old components for Stickers
  • Loading branch information
taesungh committed Oct 28, 2024
1 parent e00186d commit 4e5e69e
Show file tree
Hide file tree
Showing 15 changed files with 6 additions and 234 deletions.
2 changes: 1 addition & 1 deletion apps/site/.eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"extends": ["next/core-web-vitals"]
"extends": ["eslint:recommended", "next/core-web-vitals", "next/typescript"]
}
2 changes: 1 addition & 1 deletion apps/site/src/app/(home)/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ export const revalidate = 60;

import Landing from "./sections/Landing";
import GetInvolved from "./sections/GetInvolved";
import Sponsors from "./sections/Sponsors";
// import Sponsors from "./sections/Sponsors";
import FAQ from "./sections/FAQ";

import styles from "./page.module.scss";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,6 @@ const ClipboardSchedule: React.FC<ClipboardScheduleProps> = ({ schedule }) => {
title,
description,
location,
hosts,
startTime,
endTime,
}) => {
Expand Down
Empty file removed apps/site/src/components/.gitkeep
Empty file.
6 changes: 2 additions & 4 deletions apps/site/src/components/Footer/Footer.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
"use client";

import Image from "next/image";
import Image, { StaticImageData } from "next/image";
import Link from "next/link";
import clsx from "clsx";

Expand All @@ -13,7 +11,7 @@ import Hack from "@/assets/icons/hack.svg";
import TikTok from "@/assets/icons/tiktok.svg";

type Social = {
icon: any;
icon: StaticImageData;
link: string;
alt: string;
};
Expand Down
5 changes: 0 additions & 5 deletions apps/site/src/components/Sticker/BaseSticker.module.scss

This file was deleted.

82 changes: 0 additions & 82 deletions apps/site/src/components/Sticker/BaseSticker.tsx

This file was deleted.

12 changes: 0 additions & 12 deletions apps/site/src/components/Sticker/StickerPosition.module.scss

This file was deleted.

56 changes: 0 additions & 56 deletions apps/site/src/components/Sticker/StickerPosition.tsx

This file was deleted.

This file was deleted.

This file was deleted.

30 changes: 0 additions & 30 deletions apps/site/src/components/Sticker/Stickers/index.tsx

This file was deleted.

4 changes: 0 additions & 4 deletions apps/site/src/components/Sticker/Stickers/stickerProps.ts

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ export default function ResourceCard({
) : (
title
)}{" "}
{links.map(({ text, link }) => (
{links.map(({ link }) => (
<motion.a
className="d-inline ms-1 vertical-align-middle"
variants={variant}
Expand Down
2 changes: 1 addition & 1 deletion apps/site/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"noEmit": true,
"esModuleInterop": true,
"module": "esnext",
"moduleResolution": "node",
"moduleResolution": "bundler",
"resolveJsonModule": true,
"isolatedModules": true,
"jsx": "preserve",
Expand Down

0 comments on commit 4e5e69e

Please sign in to comment.