feat: add frontend lint checks to CI

- Add ESLint config (eslint.config.js) for ESLint 9
- Add ESLint dependencies to package.json
- Update CI workflow to include:
  - ESLint check
  - Prettier format check
- Fix lint errors:
  - Remove unused catch variable in Logs.tsx
  - Add eslint-disable for intentional useEffect dependency
- Run prettier to format all source files
This commit is contained in:
coso
2025-12-14 10:51:48 +08:00
parent d25ca669db
commit fa69ceeaee
13 changed files with 1988 additions and 199 deletions
+6
View File
@@ -62,6 +62,12 @@ jobs:
- name: TypeScript check
run: npx tsc --noEmit
- name: ESLint check
run: npm run lint
- name: Prettier check
run: npx prettier --check "src/**/*.{ts,tsx,css}"
build-check:
name: Build Check
runs-on: ubuntu-latest