Skip to content

Commit 8d974c1

Browse files
GeneAIclaude
authored andcommitted
fix: Resolve all ESLint errors and improve type safety
- Add global Window type declaration for Plausible analytics - Add proper type definitions in metadata.ts for structured data - Fix SBARWizard section type to include 'review' - Remove unused variables and parameters - Add eslint-disable for necessary any types (SendGrid) - Exclude framework-docs from ESLint (vendor files) - Fix catch blocks to use empty catch when error unused 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <[email protected]>
1 parent 99335a2 commit 8d974c1

File tree

26 files changed

+381
-327
lines changed

26 files changed

+381
-327
lines changed

site/search/search_index.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

site/sitemap.xml

Lines changed: 136 additions & 136 deletions
Large diffs are not rendered by default.

site/sitemap.xml.gz

0 Bytes
Binary file not shown.

website/app/api/contact/route.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ export async function POST(request: NextRequest) {
9393
}
9494

9595
// Handle OPTIONS for CORS if needed
96-
export async function OPTIONS(request: NextRequest) {
96+
export async function OPTIONS(_request: NextRequest) {
9797
return new NextResponse(null, {
9898
status: 204,
9999
headers: {

website/app/api/debug-wizard/analyze/route.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -448,7 +448,7 @@ export async function POST(request: Request): Promise<Response> {
448448
file_path,
449449
stack_trace,
450450
line_number,
451-
code_snippet,
451+
code_snippet: _code_snippet,
452452
correlate_with_history = true,
453453
file_contents,
454454
} = body;

website/app/api/newsletter/route.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ export async function POST(request: NextRequest) {
9696
}
9797

9898
// Handle OPTIONS for CORS if needed
99-
export async function OPTIONS(request: NextRequest) {
99+
export async function OPTIONS(_request: NextRequest) {
100100
return new NextResponse(null, {
101101
status: 204,
102102
headers: {

website/app/contact/page.tsx

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ export default function ContactPage() {
1313
});
1414
const [isRecording, setIsRecording] = useState(false);
1515
const [submitStatus, setSubmitStatus] = useState<'idle' | 'sending' | 'success' | 'error'>('idle');
16+
// Web Speech API types not available in TypeScript
17+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
1618
const recognitionRef = useRef<any>(null);
1719

1820
const handleChange = (e: React.ChangeEvent<HTMLInputElement | HTMLTextAreaElement | HTMLSelectElement>) => {
@@ -24,6 +26,7 @@ export default function ContactPage() {
2426

2527
const startDictation = () => {
2628
// Check if browser supports speech recognition
29+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
2730
const SpeechRecognition = (window as any).SpeechRecognition || (window as any).webkitSpeechRecognition;
2831

2932
if (!SpeechRecognition) {
@@ -50,16 +53,14 @@ export default function ContactPage() {
5053
setIsRecording(true);
5154
};
5255

56+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
5357
recognition.onresult = (event: any) => {
54-
let interimTranscript = '';
5558
let finalTranscript = '';
5659

5760
for (let i = event.resultIndex; i < event.results.length; i++) {
5861
const transcript = event.results[i][0].transcript;
5962
if (event.results[i].isFinal) {
6063
finalTranscript += transcript + ' ';
61-
} else {
62-
interimTranscript += transcript;
6364
}
6465
}
6566

@@ -71,6 +72,7 @@ export default function ContactPage() {
7172
}
7273
};
7374

75+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
7476
recognition.onerror = (event: any) => {
7577
console.error('Speech recognition error:', event.error);
7678
setIsRecording(false);

website/app/dev-dashboard/page.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -401,9 +401,9 @@ export default function DevDashboard() {
401401
<div className="mt-12 max-w-3xl mx-auto">
402402
<blockquote className="text-center">
403403
<p className="text-lg italic text-[var(--text-secondary)] mb-4">
404-
"The framework transformed our development workflow. Instead of discovering issues
404+
&quot;The framework transformed our development workflow. Instead of discovering issues
405405
weeks later during debugging, the wizards alerted us to emerging problems immediately.
406-
We shipped higher quality code, many times faster."
406+
We shipped higher quality code, many times faster.&quot;
407407
</p>
408408
<footer className="text-sm text-[var(--muted)]">
409409
— Development team using Empathy in production

website/app/docs/page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ export default function DocsRedirectPage() {
5252
</div>
5353

5454
<div className="mt-12 p-6 bg-[var(--border)] bg-opacity-20 rounded-lg text-left">
55-
<h3 className="font-bold mb-3">What's New in the Documentation:</h3>
55+
<h3 className="font-bold mb-3">What&apos;s New in the Documentation:</h3>
5656
<ul className="space-y-2 text-sm text-[var(--text-secondary)]">
5757
<li className="flex items-start gap-2">
5858
<span className="text-[var(--success)] mt-1"></span>

website/app/faq/page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ export default function FAQPage() {
179179
Still Have Questions?
180180
</h2>
181181
<p className="text-xl text-[var(--text-secondary)] mb-8">
182-
We're here to help. Reach out to our team or join the community.
182+
We&apos;re here to help. Reach out to our team or join the community.
183183
</p>
184184
<div className="flex flex-col sm:flex-row gap-4 justify-center">
185185
<a

0 commit comments

Comments
 (0)