mirror of
https://github.com/Egonex-AI/Understand-Anything.git
synced 2026-06-22 10:58:03 +08:00
a1261b4883
- typescript-eslint preset: strict -> recommended for a usable first-pass baseline (per PR discussion); ratchet up in a follow-up. - Drop the projectService/parserOptions block. Neither `recommended` nor `strict` is type-aware, so it was unused; removing it also avoids the pnpm-workspace tsconfig-resolution failure mode flagged in review. - Add Node + browser globals via the `globals` package so .mjs scripts and the dashboard stop hitting `no-undef`. - Expand ignores: built bundles (**/public/**), Astro generated (.astro/), and .private/ (eval scratch). Cuts 2400+ errors in vendored output. - Allow `_`-prefixed unused vars/args/caught errors; skip irregular whitespace inside comments (json-parser intentionally embeds ZWSP-escaped block-comment examples in JSDoc). - Fix the residual 13 genuine errors: drop dead imports/vars, replace two `as any[]` in schema.ts with `Array<Record<string, unknown>>`, drop unused destructure in change-classifier, drop unused catch binding in extract-structure.mjs. - Add EOF newline to eslint.config.mjs. - Refresh pnpm-lock.yaml. - Add `pnpm lint` step to .github/workflows/ci.yml so the tooling actually enforces something. pnpm lint now exits 0 locally; 33+13 test files / 1445 tests still pass.
37 lines
744 B
YAML
37 lines
744 B
YAML
name: CI
|
|
|
|
on:
|
|
pull_request:
|
|
|
|
jobs:
|
|
ci:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
|
|
- uses: pnpm/action-setup@v4
|
|
|
|
- uses: actions/setup-node@v4
|
|
with:
|
|
node-version: 22
|
|
cache: pnpm
|
|
cache-dependency-path: pnpm-lock.yaml
|
|
|
|
- name: Install dependencies
|
|
run: pnpm install
|
|
|
|
- name: Lint
|
|
run: pnpm lint
|
|
|
|
- name: Build core
|
|
run: pnpm --filter @understand-anything/core build
|
|
|
|
- name: Build skill
|
|
run: pnpm --filter @understand-anything/skill build
|
|
|
|
- name: Test core
|
|
run: pnpm --filter @understand-anything/core test
|
|
|
|
- name: Test skill
|
|
run: pnpm --filter @understand-anything/skill test
|