chore(apollo-vertex): enable type-aware linting in oxlint [AGVSOL-1969]#421
Open
chore(apollo-vertex): enable type-aware linting in oxlint [AGVSOL-1969]#421
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Dependency License Review
License distribution
Excluded packages
|
There was a problem hiding this comment.
Pull request overview
Updates the Apollo Vertex app tooling to run Oxlint with type-aware rules, and adjusts the OAuth callback token flow to avoid a React Query deadlock during query invalidation.
Changes:
- Enable
oxlint --type-awareforlintandlint:fixscripts inapps/apollo-vertex. - Avoid awaiting
queryClient.invalidateQueriesinsideensureValidTokenafter handling the OAuth callback to prevent a deadlock.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| apps/apollo-vertex/package.json | Turns on type-aware linting for the Vertex app’s lint scripts. |
| apps/apollo-vertex/lib/auth.ts | Changes token query invalidation to be non-blocking after OAuth callback completion. |
6b4f317 to
67bd346
Compare
67bd346 to
07f8be0
Compare
5e52431 to
2525e8f
Compare
2525e8f to
f257912
Compare
f257912 to
94a7e67
Compare
Add --type-aware flag to lint and lint:fix scripts so oxlint enforces type-checked rules that were fixed in PR #400. Add oxlint-tsgolint dependency required for type-aware mode. Fix deadlock in ensureValidToken by replacing await with void on invalidateQueries.
…onents - Type onGlobalFilterChange callback with Updater<string> (no-unsafe-argument) - Narrow cell value with typeof checks instead of String() cast (no-base-to-string) - Suppress no-unsafe-assignment at tanstack getFilterValue() boundary
2404c5d to
459bc19
Compare
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 --type-aware flag to lint and lint:fix scripts so oxlint enforces type-checked rules that were fixed in PR #400.
Also fix deadlock caused by awaiting invalidateQueries in ensureValidToken.