Skip to content

Switch from eslint to biome#108

Merged
Eijebong merged 6 commits intotaskcluster:mainfrom
Eijebong:biome
May 5, 2026
Merged

Switch from eslint to biome#108
Eijebong merged 6 commits intotaskcluster:mainfrom
Eijebong:biome

Conversation

@Eijebong
Copy link
Copy Markdown
Contributor

@Eijebong Eijebong commented May 5, 2026

This is better reviewed commit by commit

Closes #96
Closes #103

@Eijebong Eijebong requested a review from a team as a code owner May 5, 2026 10:46
@Eijebong
Copy link
Copy Markdown
Contributor Author

Eijebong commented May 5, 2026

#109 will fix CI

@github-project-automation github-project-automation Bot moved this to Backlog / Inbox in TC intake board May 5, 2026
@Eijebong Eijebong moved this from Backlog / Inbox to In review in TC intake board May 5, 2026
Copy link
Copy Markdown
Contributor

@matt-boris matt-boris left a comment

Choose a reason for hiding this comment

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

Nice, thanks. LGTM. And I approved the one that'll fix this one's CI. Feel free to merge that other and rebase/merge this one 👍🏻

Eijebong added 6 commits May 5, 2026 17:38
Eslint is a pain to update, half the plugins are working with 8 only,
the other half with 9, meanwhile eslint is now on 10. Instead of pulling
half of the internet, switch to biome which in my experience is stricter
regarding lints and also faster. And a lot less painful to update.
This fixes biome's `noAssignInExpressions` warnings which really didn't
like the `foo = exports.foo = function ()` pattern. I would've fixed
this by using `export function foo()` instead but that requires
converting this lib to ESM which is another project... In the meantime,
the result is a lot cleaner IMO, it's way easier to see the public API
for this library now.
Fixes biome's `useConst` linter warnings.
I excluded `src/**` from that check since it was complaining about `assert`
there which actually gets polyfilled. But for tests, this is correct.

Fixes biome's `useNodejsImportProtocol` lint.
This formats the code as biome wants it. This is unfortunately a bit
noisy, I reduced the diff as much as possible by trying to match the
rules with eslint but there's some changes we can just not escape.
@Eijebong Eijebong merged commit ffef7f3 into taskcluster:main May 5, 2026
1 check passed
@github-project-automation github-project-automation Bot moved this from In review to Done in TC intake board May 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants