AOSSIE-Org / AOSSIE-Org/PictoPy-Website

Fix ESLint errors in Home1.tsx and input.tsx

未关闭
#33 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
enhancement
主要语言
TypeScript
星标
12
派生
16
PR 合并指标
30 天内没有已合并 PR

描述

## Description

Running `npm run lint` currently reports 2 errors that should be fixed:
src/Pages/Landing page/Home1.tsx
183:29 error Unexpected any. Specify a different type @typescript-eslint/no-explicit-any

src/components/ui/input.tsx
5:18 error An interface declaring no members is equivalent to its supertype @typescript-eslint/no-empty-object-type

## Tasks

- [ ] `Home1.tsx:183` — In `ShuffleGrid`, replace `useRef(null)` with a proper type for the timeout ref, e.g. `useRef | null>(null)`.
- [ ] `input.tsx:5` — Replace the empty `interface InputProps extends React.InputHTMLAttributes {}` with `export type InputProps = React.InputHTMLAttributes;`.

## Acceptance Criteria

- `npm run lint` reports 0 errors (warnings out of scope for this issue).
- No behavioral changes to the app — this is a type-safety cleanup only.

## Out of Scope

Existing lint warnings (`exhaustive-deps`, `react-refresh/only-export-components`) — tracked separately if needed.

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。