Skip to content
This repository was archived by the owner on Feb 18, 2026. It is now read-only.

Added Biome linter config and CI: created biome.json, workflow file a…#274

Open
FaizFarooqMoazam wants to merge 1 commit intoScottyLabs:mainfrom
FaizFarooqMoazam:biome_linter
Open

Added Biome linter config and CI: created biome.json, workflow file a…#274
FaizFarooqMoazam wants to merge 1 commit intoScottyLabs:mainfrom
FaizFarooqMoazam:biome_linter

Conversation

@FaizFarooqMoazam
Copy link

@FaizFarooqMoazam FaizFarooqMoazam commented Dec 9, 2025

Replace ESLint with Biome (Issue #196)

This pull request proposes replacing the current ESLint + Prettier setup with Biome for faster, unified linting, formatting, and import organization across the repository.

Summary

  • Added biome.json configuration at the repo root.
  • Added GitHub Actions workflow through the biome.yml file to run Biome in CI.
  • Updated root package.json scripts to run Biome for linting and formatting.

Purpose

  • Single tool for lint, format, and imports.
  • Material performance improvements compared to ESLint.
  • Simplified configuration and maintenance.

Usage (Local)

If you use Bun:

bun add -D @biomejs/biome
bunx @biomejs/biome check .
bunx @biomejs/biome format . --write

If you use npm:

npm i -D @biomejs/biome
npx @biomejs/biome check .
npx @biomejs/biome format . --write

##Testing

  • Ran several commands and checked outputs, all were successful. Below is an example snippet of the output from bun run biome:check (majority of output not shown, contained intricacies about syntax errors in the source code)
bun run biome_check

Notes

  • ESLint configs remain for now; Biome can run side-by-side initially.
  • Follow-up tasks (optional):
    • Remove ESLint packages/configs after team approval.
    • Align repo formatting to Biome (one-time format).

Closes #196

@vercel
Copy link

vercel bot commented Dec 9, 2025

@FaizFarooqMoazam is attempting to deploy a commit to the ScottyLabs Team on Vercel.

A member of the Team first needs to authorize it.

@nniknam1
Copy link

nniknam1 commented Dec 9, 2025

This looks good!

@IndyaG
Copy link
Contributor

IndyaG commented Dec 10, 2025

Need to reach out to see about the authorization of Vercel, but looks good!

Copy link
Contributor

@ap-1 ap-1 left a comment

Choose a reason for hiding this comment

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

In $schema in biome.json, you should opt to import it from node_modules rather than from URL. They have one in @biomejs/biome.

The way it is currently, the schema will no longer match the version of Biome after it's updated.

Copy link
Contributor

@ap-1 ap-1 left a comment

Choose a reason for hiding this comment

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

I also recommend adding a .editorconfig file (right click in the file tree in VS Code -> "Generate EditorConfig") that matches the settings selected here. This way, the editor will recognize that the project expects tab indents.

I also recommend adding an editor -> formatOnSave configuration in .vscode/settings.json, and adding Biome as a recommended extension in .vscode/extensions.json.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Consider modern alternatives to eslint + prettier

4 participants