Skip to content

feat: shareable oxlint config#3996

Open
tido64 wants to merge 1 commit intomainfrom
tido/oxlint
Open

feat: shareable oxlint config#3996
tido64 wants to merge 1 commit intomainfrom
tido/oxlint

Conversation

@tido64
Copy link
Member

@tido64 tido64 commented Feb 27, 2026

Description

Shareable oxlint configurations.

The README.md can be found here: https://github.com/microsoft/rnx-kit/blob/tido/oxlint/packages/oxlint-config/README.md

Locally, repo-wide linting is about ~5 seconds faster (~25s → ~20s) on my MacBook Pro. Unlike oxfmt, we prefer to run oxlint per package to allow type-aware checks (they need to read tsconfig.json). On CI, the times vary too much to be conclusive:

Before After
image image

Test plan

CI should pass.

@github-actions github-actions bot added chore Improvements that don't directly affect features feature: eslint This is related to ESLint labels Feb 27, 2026
@tido64 tido64 force-pushed the tido/oxlint branch 2 times, most recently from 6256ae0 to 9666a62 Compare February 27, 2026 13:51
@github-actions github-actions bot added feature: metro This is related to Metro feature: third party notices This is related to Third Party Notices feature: sdk This is related to 1RN SDK feature: webapis This is related to the experimental effort around WebAPIs for RN labels Feb 27, 2026
@github-actions github-actions bot added feature: align-deps This is related to align-deps feature: cli This is related to CLI feature: jest This is related to Jest labels Mar 2, 2026
@tido64 tido64 force-pushed the tido/oxlint branch 3 times, most recently from bdb1b93 to 22ad061 Compare March 2, 2026 14:25
@tido64 tido64 marked this pull request as ready for review March 2, 2026 14:33
@@ -41,6 +41,7 @@
},
"devDependencies": {
"@rnx-kit/eslint-config": "*",
Copy link
Member

Choose a reason for hiding this comment

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

If we keep the eslint config, then we should keep the ESLint exclusions too.
Currently if I run the ESLint for the fork-sync it will fail because the important suppressions are removed.
IMHO, we either should do the complete conversion, or keep the old suppressions if we want to support both.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

chore Improvements that don't directly affect features feature: align-deps This is related to align-deps feature: cli This is related to CLI feature: eslint This is related to ESLint feature: jest This is related to Jest feature: metro This is related to Metro feature: oxlint feature: sdk This is related to 1RN SDK feature: third party notices This is related to Third Party Notices feature: webapis This is related to the experimental effort around WebAPIs for RN

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants