Skip to content

Commit 4292641

Browse files
committed
fix: lint errors and CI workflow
- Fixed TypeScript any type in error handling - Fixed unused variable in CodeBlock - Fixed const declaration in text-generate-effect - Fixed unescaped apostrophe in page.tsx - Changed npm ci to npm install in CI workflow - All lint checks passing
1 parent fdd9851 commit 4292641

4 files changed

Lines changed: 5 additions & 5 deletions

File tree

app/page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ export default function Home() {
5252
className="inline-flex items-center gap-2 bg-black text-white px-8 py-4 rounded-lg font-semibold hover:bg-gray-800 transition-colors"
5353
>
5454
<Github size={20} />
55-
GitHub'da Görüntüle
55+
GitHub&apos;da Görüntüle
5656
</a>
5757
<Link
5858
href="#tools"

app/submit-tool/page.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,8 @@ export default function SubmitToolPage() {
4848
usage: '',
4949
features: '',
5050
})
51-
} catch (err: any) {
52-
setError(err.message)
51+
} catch (err) {
52+
setError(err instanceof Error ? err.message : 'Bir hata oluştu')
5353
} finally {
5454
setLoading(false)
5555
}

components/CodeBlock.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ interface CodeBlockProps {
88
language: string
99
}
1010

11-
export default function CodeBlock({ code, language }: CodeBlockProps) {
11+
export default function CodeBlock({ code }: CodeBlockProps) {
1212
const [copied, setCopied] = useState(false)
1313

1414
const copyToClipboard = () => {

components/ui/text-generate-effect.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ export const TextGenerateEffect = ({
1616
duration?: number;
1717
}) => {
1818
const [scope, animate] = useAnimate();
19-
let wordsArray = words.split(" ");
19+
const wordsArray = words.split(" ");
2020

2121
useEffect(() => {
2222
if (scope.current) {

0 commit comments

Comments
 (0)