Skip to content

Commit 3e79cb2

Browse files
committed
fix: fixed eslint warnings
1 parent 43c05cb commit 3e79cb2

2 files changed

Lines changed: 3 additions & 4 deletions

File tree

apps/website/src/app/api/docs/[folder]/[...slug]/route.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
1+
import type { NextRequest } from "next/server";
2+
13
import { getDocument } from "@/utils/docs";
2-
import { NextRequest, NextResponse } from "next/server";
4+
import { NextResponse } from "next/server";
35

46
interface ApiDocsPageProps {
57
params: Promise<{ folder: string; slug: string[] }>;
68
}
79

810
export async function GET(request: NextRequest, { params }: ApiDocsPageProps) {
911
const { folder, slug } = await params;
10-
console.log('folder:', folder, 'slug:', slug);
1112
const document = slug.join("/");
1213
const data = getDocument({
1314
folder,

apps/website/src/mdx/plugins/rehypeReactDoc.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,6 @@ export function rehypeReactDoc() {
102102
let filteredProps: [string, unknown][] = propEntries;
103103
let reactParentName: string | null = null;
104104
if (!fullProp) {
105-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
106105
filteredProps = propEntries.filter(([_, prop]) => {
107106
const parent = (
108107
prop as {
@@ -123,7 +122,6 @@ export function rehypeReactDoc() {
123122
}
124123

125124
return [
126-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
127125
...filteredProps.map(([_, prop]) => {
128126
const p = prop as PropType;
129127
return u("element", {

0 commit comments

Comments
 (0)