From 61dfb27d52a845392a6716ec088fc141ff358f52 Mon Sep 17 00:00:00 2001 From: Himank Dave Date: Thu, 3 Apr 2025 22:23:20 -0400 Subject: [PATCH 01/11] lint: define rules in eslintrc --- .eslintrc.json | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/.eslintrc.json b/.eslintrc.json index 6b10a5b..725320f 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -2,5 +2,18 @@ "extends": [ "next/core-web-vitals", "next/typescript" - ] + ], + "rules": { + // Code quality + "no-console": "warn", + "no-debugger": "error", + // "no-unused-vars": "off", // Handled by TS version above + + // Style + "semi": ["error", "always"], + "quotes": ["error", "single", { "avoidEscape": true }], + "indent": ["error", 2], + "object-curly-spacing": ["error", "always"], + "comma-dangle": ["error", "always-multiline"] + } } From e8774317b64d7bff8716ece64118a166f2509040 Mon Sep 17 00:00:00 2001 From: Himank Dave Date: Thu, 3 Apr 2025 22:24:55 -0400 Subject: [PATCH 02/11] lint: apply linting rules defined in previous commit --- src/app/(home)/layout.tsx | 14 +- src/app/(home)/page.tsx | 14 +- src/app/layout.tsx | 44 ++--- src/app/not-found.tsx | 38 ++-- src/app/providers.tsx | 6 +- src/components/About.tsx | 74 ++++---- src/components/Education.tsx | 108 +++++------ src/components/Experiences.tsx | 56 +++--- src/components/Footer.tsx | 48 ++--- src/components/Header.tsx | 230 ++++++++++++------------ src/components/Miscellaneous.tsx | 24 +-- src/components/Navbar.tsx | 44 ++--- src/components/Projects.tsx | 66 +++---- src/components/Skills.tsx | 108 +++++------ src/components/SmoothScrollProvider.tsx | 8 +- src/components/ThemeSwitch.tsx | 28 +-- src/components/Tiles/ExperienceTile.tsx | 76 ++++---- src/components/Tiles/ProjectTile.tsx | 56 +++--- src/components/ui/BackButton.tsx | 14 +- src/components/ui/Badge.tsx | 22 +-- src/components/ui/BlurFade.tsx | 16 +- src/components/ui/Highlighter.tsx | 44 ++--- src/components/ui/HoverHighlighter.tsx | 72 ++++---- src/components/ui/LinkWithArrow.tsx | 20 +-- src/components/ui/Loader.tsx | 16 +- src/data/resume.ts | 210 +++++++++++----------- src/hooks/useMediaQuery.tsx | 20 +-- src/hooks/useReadingProgress.tsx | 40 ++--- src/hooks/useSmoothScroll.tsx | 52 +++--- src/lib/posts.ts | 50 +++--- src/lib/techIcons.ts | 90 +++++----- src/lib/utils.ts | 6 +- 32 files changed, 857 insertions(+), 857 deletions(-) diff --git a/src/app/(home)/layout.tsx b/src/app/(home)/layout.tsx index aa92a9b..647ac86 100644 --- a/src/app/(home)/layout.tsx +++ b/src/app/(home)/layout.tsx @@ -1,5 +1,5 @@ -import Footer from "@/components/Footer"; -import Navbar from "@/components/Navbar"; +import Footer from '@/components/Footer'; +import Navbar from '@/components/Navbar'; export default async function HomeLayout({ children, @@ -7,10 +7,10 @@ export default async function HomeLayout({ children: React.ReactNode; }>) { return ( - <> - -
{children}
-