chore(lint): add ESLint flat config + CI lint/build gate #6
All Vouch review confidence checks passed
Residual risk 0.37 = Change Risk (0.66) × (1 − Review Confidence (0.45)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.66 · 201 lines diff across 2 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.02 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Shallow Review Depth
shallow_review_depth
0.344
Diff Size
diff_size
0.318
Sensitive Paths
sensitive_paths
0.066
Real PR Conversation Timeline
1 comments
"Review active on #6"
general
weight: 0.35
Builder106
Summary
The repo has no linter today. This adds one to the v3.0.0 React codebase with a green baseline, plus a CI gate so future PRs get checked automatically.
Changes
eslint.config.mjs— ESLint 9 flat config:@eslint/jsrecommended +eslint-plugin-react(jsx-runtime) +eslint-plugin-react-hooks. Scoped tosrc/(the live app) and the Node build scripts; legacy dirs (frontend/,electron/) and static sites (docs/,landing/) are ignored.npm run lintscript + dev dependencies (eslint@^9, pinned below 10 foreslint-plugin-reactpeer compatibility)..github/workflows/ci.yml— runsnpm run lint+npm run build:frontendon PRs and pushes tomain. Full Tauri builds stay in the existing tag-triggeredrelease.yml.Baseline
Green — 0 errors, 19 warnings (pre-existing exhaustive-deps / unused-var advisories, left as non-blocking signal). Two rules tuned to the codebase's intent rather than rewriting working code:
no-empty: { allowEmptyCatch: true }— the deliberatecatch {}blocks are fine.react-hooks/set-state-in-effect: 'warn'— the app intentionally syncs external config into state inside effects; surfaced, not blocked.Bug caught on first run
ESLint immediately flagged a real one:
API.elevateNotchWindowinsrc/lib/api.jscalled a bareinvokethat isn't defined in the module (every other method usestauriInvoke), so calling it would throwReferenceErrorat runtime. Fixed in this PR (one line).Testing
npm run lint→ passes (exit 0)npm ci→ lockfile in syncnpm run build:frontend→ clean