Skip to content

Replace ESLint with Biome#156

Merged
gaurav merged 17 commits intomasterfrom
replace-eslint-with-biome
Feb 26, 2026
Merged

Replace ESLint with Biome#156
gaurav merged 17 commits intomasterfrom
replace-eslint-with-biome

Conversation

@gaurav
Copy link
Copy Markdown
Member

@gaurav gaurav commented Jan 21, 2026

This PR replaces ESLint with Biome. We previously used ESLint with the Airbnb style, which applied a bunch of rules for us, but since package eslint-config-airbnb-base hasn't been updated in four years and prevents us upgrading to a more recent version of ESLint (see e.g. #154). We could stick with ESLint and come up with a custom configuration ourselves, but that seems like a lot of work.

Instead, I think we should replace ESLint with Biome, a parser and linter written in Rust that is really fast and has very sensible recommendations. This PR includes:

  • Deleting existing ESLint files (.eslintignore, .eslintrc.json) and configuration from package.json.
  • Adding Biome and a Biome configuration file (biome.json) to make it a bit more similar to our existing code.
  • A lot of changes that came from fixing our code to meet Biome's standards as per our configuration, mostly automated but a few made manually by me.

@gaurav gaurav force-pushed the replace-eslint-with-biome branch 2 times, most recently from 55db110 to 325df29 Compare January 21, 2026 08:45
@gaurav gaurav mentioned this pull request Feb 22, 2026
@gaurav gaurav marked this pull request as ready for review February 22, 2026 22:01
@gaurav gaurav requested a review from hlapp February 22, 2026 22:02
@gaurav gaurav changed the title Replace eslint with biome Replace ESLint with Biome Feb 22, 2026
@gaurav gaurav mentioned this pull request Feb 22, 2026
Copy link
Copy Markdown
Member

@hlapp hlapp left a comment

Choose a reason for hiding this comment

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

I agree with the replacement idea, the style changes look reasonable (even if inflating loc count?) and looks like everything passes 👍

@gaurav gaurav merged commit 90e7d2a into master Feb 26, 2026
4 checks passed
@gaurav gaurav deleted the replace-eslint-with-biome branch February 26, 2026 04:28
gaurav added a commit to phyloref/clade-ontology that referenced this pull request Mar 17, 2026
Used Claude to replace ESLint (with Airbnb base style) with Biome because the Airbnb base style does not appear to be maintained. This will bring this repo in line with phyx.js (phyloref/phyx.js#156).

Also removed the `push` trigger in GitHub Actions -- the `pull_request` trigger covers all of our use cases.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants