Skip to content

Switch from eslint to oxlint#34166

Open
t3chguy wants to merge 25 commits into
developfrom
t3chguy/oxlint
Open

Switch from eslint to oxlint#34166
t3chguy wants to merge 25 commits into
developfrom
t3chguy/oxlint

Conversation

@t3chguy

@t3chguy t3chguy commented Jul 7, 2026

Copy link
Copy Markdown
Member

For https://github.com/element-hq/wat-internal/issues/498

Some of the rules behave differently, some even a touch buggy, but for the insane speed benefit I think it is worth it. Some rules have been disabled in the initial PR but will be followed up in additional PRs to finish off this work.

@t3chguy t3chguy added the T-Task Tasks for the team like planning label Jul 7, 2026
@t3chguy t3chguy self-assigned this Jul 7, 2026
…o t3chguy/oxlint

# Conflicts:
#	apps/web/src/components/structures/MatrixChat.tsx
#	apps/web/src/components/views/elements/PersistedElement.tsx
@dbkr

dbkr commented Jul 7, 2026

Copy link
Copy Markdown
Member

🐂

Had a quick look and this all seems plausible. Do we still need/want a common set of matrix.org rules for oxlint like we had in eslint (I saw the import being removed) or are they sensible enough out of the box?

@t3chguy

t3chguy commented Jul 7, 2026

Copy link
Copy Markdown
Member Author

I think we should lean towards out of the box with some minor tweaks to not need to make our codebase comply on day dot, i.e the approach we adopted with Prettier (now oxfmt). It is better to have something good and consistent rather than tweaking a hundred rules to make it "perfect" for us.

@Johennes

Johennes commented Jul 7, 2026

Copy link
Copy Markdown
Contributor

EC has recently also switched to the OX tools. The only thing we kept from the shared repo was the copyright rule. We just copied that one into our repo though to avoid the dependency. Otherwise, agree that there's probably not much benefit in fixating all the various rules across repositories.

@t3chguy

t3chguy commented Jul 7, 2026

Copy link
Copy Markdown
Member Author

Yeah that is a good point, I may adopt that into this monorepo

@t3chguy

t3chguy commented Jul 7, 2026

Copy link
Copy Markdown
Member Author

Or actually, may just nab it from EC :P

@t3chguy

t3chguy commented Jul 7, 2026

Copy link
Copy Markdown
Member Author

Nabbed

@dbkr dbkr left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Makes sense to me: if we can get away without custom rules, let's absolutely do that.

…o t3chguy/oxlint

# Conflicts:
#	apps/web/.eslintrc.cjs
#	apps/web/src/components/structures/MatrixChat.tsx
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

T-Task Tasks for the team like planning Z-Skip-Coverage Skip SonarQube coverage for this PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants