Skip to content

fix(ci): add eslint check to web job in CI workflow - #128

Merged
gkhngyk merged 2 commits into
ansvisor:mainfrom
ayobamiseun:fix/add-eslint-ci-check
May 31, 2026
Merged

gkhngyk merged 2 commits into
ansvisor:mainfrom
ayobamiseun:fix/add-eslint-ci-check

Conversation

@ayobamiseun

Copy link
Copy Markdown
Contributor

Add ESLint linting step to the existing web job in .github/workflows/ci.yml. This ensures ESLint violations are caught on every PR and push to main, preventing lint errors from landing on the main branch.

Add ESLint linting step to the existing web job in .github/workflows/ci.yml.
This ensures ESLint violations are caught on every PR and push to main,
preventing lint errors from landing on the main branch.

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Welcome to Ansvisor, and thank you for your first PR! A maintainer will be by soon to review.

In the meantime, two things that make review faster:

  • A short description of why the change matters, not just what it does — most of our PRs link a Fixes #... to the issue that explains the why.
  • A quick local test note if there's anything worth eyeballing in the browser.

If you'd like to keep an eye on where Ansvisor goes next, a ⭐ on the repo helps others discover it (and Watch sends you a ping when related issues land). Either way — looking forward to your next one.

gkhngyk added a commit that referenced this pull request May 31, 2026
The eslint-config-next ruleset surfaced 8 errors in the current
codebase. Once the CI lint job from #128 merges, every PR (including
the 0.1.2 release) would fail on these. Clearing them first so #128 can
land without breaking main.

- mcp/data.ts: 5x `any` on JSON-shaped Supabase rows → `Record<string, unknown>`.
  Matches the existing `GeneratedBrief.brief` typing right next to them
  and gives consumers an explicit narrow-required surface.
- sidebar.tsx, mobile-nav.tsx: setState-in-effect on a hydration mount
  flag. This is the canonical Next.js theme-swap pattern — SSR can't
  know resolvedTheme, so we render the light logo first and swap after
  hydration. No useEffect-free version avoids the mismatch; disable the
  rule on the setMounted line with a comment explaining the intent.
- invite/[token]/page.tsx: `Date.now()` purity error on the expiration
  check. This is a server component rendering per request, the rule
  targets client-side memoization concerns that don't apply on the
  server. Disable with a comment.

Warnings (unused imports etc.) untouched — they don't fail the build,
and addressing them is mechanical cleanup that doesn't belong in this
PR.
@gkhngyk
gkhngyk merged commit 741a7ca into ansvisor:main May 31, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants