Skip to content

Commit d292c95

Browse files
jonathanperisclaude
andcommitted
fix: resolve lint errors in portfolio and resume pages
- Use next/link Link component instead of <a> for internal navigation - Wrap // comment-like text in JSX string expression to avoid jsx-no-comment-textnodes - Remove unused eslint-disable directive Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 2902f30 commit d292c95

2 files changed

Lines changed: 6 additions & 5 deletions

File tree

app/portfolio.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
"use client";
22

33
import { useEffect, useState, useRef, useCallback } from "react";
4+
import Link from "next/link";
45
import type { GitHubRepo } from "./lib/github";
56
import { ROLES, EXPERIENCES, SOCIALS, FEATURED_PROJECTS, SKILLS } from "./lib/data";
67

@@ -199,7 +200,7 @@ export default function Portfolio({ projects }: { projects: GitHubRepo[] }) {
199200
{/* ━━ Nav ━━ */}
200201
<nav className="sticky top-0 z-40 -mx-6 md:-mx-12 px-6 md:px-12 py-4 bg-bg/80 backdrop-blur-lg border-b border-transparent" style={{ borderColor: scrollProgress > 0.02 ? 'var(--color-border)' : 'transparent' }}>
201202
<div className="flex items-center justify-between max-w-6xl mx-auto">
202-
<a href="/" className="font-mono text-sm font-bold text-text hover:text-violet transition-colors">jp<span style={{ color: 'var(--color-violet)' }}>.</span></a>
203+
<Link href="/" className="font-mono text-sm font-bold text-text hover:text-violet transition-colors">jp<span style={{ color: 'var(--color-violet)' }}>.</span></Link>
203204
<div className="flex items-center gap-6">
204205
{["about", "experience", "projects"].map((s) => (
205206
<a key={s} href={`#${s}`} className="font-mono text-xs text-dim hover:text-text transition-colors">{s}</a>
@@ -295,7 +296,7 @@ export default function Portfolio({ projects }: { projects: GitHubRepo[] }) {
295296

296297
{/* ━━ Stack ━━ */}
297298
<section className="py-16 scroll-mt-20">
298-
<Reveal><SectionLabel>// stack</SectionLabel></Reveal>
299+
<Reveal><SectionLabel>{"// stack"}</SectionLabel></Reveal>
299300
<div className="grid gap-3 sm:grid-cols-2 max-w-4xl">
300301
{SKILL_CATEGORIES.map(({ key, label, tagClass }, i) => (
301302
<Reveal key={key} delay={i * 60}>
@@ -468,7 +469,6 @@ export default function Portfolio({ projects }: { projects: GitHubRepo[] }) {
468469
{' '}and my{' '}
469470
<a href="https://claude.ai/" target="_blank" rel="noreferrer noopener" className="font-bold text-dim transition-colors" onMouseOver={e => e.currentTarget.style.color = 'var(--color-violet-light)'} onMouseOut={e => e.currentTarget.style.color = 'var(--color-dim)'}>24/7 Intern</a>
470471
</p>
471-
{/* eslint-disable-next-line react/no-unescaped-entities */}
472472
<p className="font-mono text-[10px] text-dim/30 select-none">{"// ↑↑↓↓←→←→BA"}</p>
473473
</div>
474474
</Reveal>

app/resume/page.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
"use client";
22

3+
import Link from "next/link";
34
import { PROFILE, SKILLS, EDUCATION, EXPERIENCES } from "../lib/data";
45

56
export default function ResumePage() {
@@ -8,9 +9,9 @@ export default function ResumePage() {
89
{/* Print / Download bar — hidden when printing */}
910
<div className="print:hidden sticky top-0 z-50 bg-bg border-b border-border">
1011
<div className="max-w-[800px] mx-auto px-8 py-3 flex items-center justify-between">
11-
<a href="/" className="font-mono text-sm text-muted hover:text-green transition-colors">
12+
<Link href="/" className="font-mono text-sm text-muted hover:text-green transition-colors">
1213
&larr; Back to portfolio
13-
</a>
14+
</Link>
1415
<button
1516
onClick={() => window.print()}
1617
className="font-mono text-xs text-bg bg-green hover:bg-green-dim px-4 py-1.5 rounded-md transition-colors font-semibold"

0 commit comments

Comments
 (0)