Repository navigation
fix(ci): add eslint check to web job in CI workflow - #128
Merged
Merged
Conversation
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.
There was a problem hiding this comment.
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.
This was referenced May 31, 2026
Closed
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.
This was referenced May 31, 2026
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.