chore(lint): migrate repo to oxlint and stabilize validation#4075
Merged
Saadnajmi merged 7 commits intomicrosoft:mainfrom Apr 24, 2026
Merged
chore(lint): migrate repo to oxlint and stabilize validation#4075Saadnajmi merged 7 commits intomicrosoft:mainfrom
Saadnajmi merged 7 commits intomicrosoft:mainfrom
Conversation
🦋 Changeset detectedLatest commit: 9fad281 The changes in this PR will be included in the next version bump. This PR includes changesets to release 74 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
ba05514 to
7ce82c8
Compare
|
Azure Pipelines: 1 pipeline(s) were filtered out due to trigger conditions. |
a89f2a3 to
9c3eaf4
Compare
|
Azure Pipelines: 1 pipeline(s) were filtered out due to trigger conditions. |
b382af0 to
0413432
Compare
Saadnajmi
commented
Apr 16, 2026
Saadnajmi
commented
Apr 16, 2026
Saadnajmi
commented
Apr 16, 2026
Saadnajmi
commented
Apr 16, 2026
Saadnajmi
commented
Apr 16, 2026
Saadnajmi
commented
Apr 16, 2026
Saadnajmi
commented
Apr 16, 2026
Saadnajmi
commented
Apr 16, 2026
Saadnajmi
commented
Apr 16, 2026
Saadnajmi
commented
Apr 16, 2026
Saadnajmi
commented
Apr 16, 2026
Saadnajmi
commented
Apr 16, 2026
Saadnajmi
commented
Apr 16, 2026
Saadnajmi
commented
Apr 16, 2026
Saadnajmi
commented
Apr 16, 2026
Saadnajmi
commented
Apr 16, 2026
Saadnajmi
commented
Apr 16, 2026
Saadnajmi
commented
Apr 16, 2026
Saadnajmi
commented
Apr 16, 2026
Saadnajmi
commented
Apr 16, 2026
Saadnajmi
commented
Apr 16, 2026
Saadnajmi
commented
Apr 16, 2026
Saadnajmi
commented
Apr 16, 2026
Saadnajmi
commented
Apr 16, 2026
Saadnajmi
commented
Apr 16, 2026
Saadnajmi
commented
Apr 16, 2026
Saadnajmi
commented
Apr 16, 2026
Saadnajmi
commented
Apr 16, 2026
Swap ESLint for oxlint across the monorepo. This includes deleting all per-package eslint.config.js files, adding oxlint.config.ts where needed, updating package.json scripts/dependencies, renaming eslint-config-rules to lint-config-rules, fixing depcheck dynamic dependency injection, and updating dependency profiles and align-deps presets. No behavioral code changes — only tooling and configuration. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Automated and trivial fixes flagged by oxlint rules: - @ts-ignore → @ts-expect-error - export * → explicit named exports - forEach → for-of loops - Array<T> → T[] syntax - Missing React key props - Unused parameter underscoring - Removed stale eslint-disable/ts-ignore comments - Minor code simplifications (spread removal, type assertion fix) No behavioral changes — all transformations are semantically equivalent. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Add eslint-disable-next-line react-hooks/exhaustive-deps comments to hooks that intentionally use empty or partial dependency arrays by design (e.g., mount-only effects, stable ref callbacks). These suppressions preserve the existing intended behavior while satisfying oxlint's stricter linting. No code logic changes — only lint suppression comments added/reworded. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Correctness fixes for React hook dependency arrays flagged by oxlint's exhaustive-deps rule. Key changes: - RadioGroup: destructure context, use functional state updaters (fixes state mutation bug where .push() didn't trigger re-render) - ContextualMenu/Submenu: destructure callbacks, add missing deps - Menu: fix comma expression bug in MenuPopover, fix self-referential useMemo in useMenu.android, destructure context - Shimmer/Spinner/ActivityIndicator: useRef for Animated.Value (prevents recreation on re-render), correct animation effect deps - Drawer: add isFirstOpen dep, destructure callbacks - useAsPressable/useAsToggle: add missing callback deps (stale closures) - TabListAnimatedIndicator: useMemo → useRef for stable animation values - TabList: refactor disabled tab search loop - useSlot/useMergeRefs: correct dependency arrays - Chip/Checkbox/OverflowItem: narrow or correct dep arrays Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
0413432 to
d04b0bf
Compare
JasonVMo
reviewed
Apr 22, 2026
Contributor
JasonVMo
left a comment
There was a problem hiding this comment.
I think only two things I'd flag as issues.
…undle script - useMergeRefs: restore [...refs] spread so React compares individual ref values rather than the always-new rest parameter array instance - useSlot: re-add `component` to useMemo deps to ensure memo invalidates when the component prop changes - fluent-tester: revert bundle script to original `rnx-cli bundle --dev false` which is more flexible than explicit per-platform chaining Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Destructuring onDismiss from userProps removed it from the ...rest spread that gets passed to the Callout root slot. The Callout needs onDismiss to function correctly — without it, the MenuButton SPACE key test consistently failed because the menu couldn't dismiss/toggle properly. Fix: destructure onDismiss AND explicitly pass it back in the root slot props. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
JasonVMo
approved these changes
Apr 24, 2026
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.
Summary
This PR replaces the repo ESLint-based lint workflow with oxlint, fixes the violations surfaced by that migration, and closes the validation issue that was still breaking the full Lage run.
What changed
1. Migrate the repo from ESLint to oxlint
2. Fix oxlint violations across the repo
3. Stabilize full repo validation
Why this is split this way
The commit history is organized to make review easier:
This lets the tooling migration, rule-compliance changes, and validation fix be reviewed independently.
Validation