Skip to content

chore(sdk/nodejs): migrate linting from ESLint to Biome#4426

Merged
markmandel merged 2 commits intoagones-dev:mainfrom
smazmi:chore-nodejs-sdk-biome-linting
Jan 20, 2026
Merged

chore(sdk/nodejs): migrate linting from ESLint to Biome#4426
markmandel merged 2 commits intoagones-dev:mainfrom
smazmi:chore-nodejs-sdk-biome-linting

Conversation

@smazmi
Copy link
Copy Markdown
Contributor

@smazmi smazmi commented Jan 17, 2026

What type of PR is this?

Uncomment only one /kind <> line, press enter to put that in a new line, and remove leading whitespace from that line:

/kind breaking
/kind bug

/kind cleanup

/kind documentation
/kind feature
/kind hotfix
/kind release

What this PR does / Why we need it:
Migrates the Node.js SDK linting from ESLint to Biome, using Biome's standard recommended rules with no custom overrides.

Changes include:

  • Replaced eslint and globals dependencies with @biomejs/biome
  • Updated lint script from eslint --fix to biome check --write
  • Applied Biome's default formatting (double quotes, consistent spacing)
  • Fixed lint issues to comply with Biome's stricter rules:
    • Prefixed unused callback parameters with _
    • Replaced forEach with for...of to avoid implicit return values
    • Replaced TypeScript any types with unknown

Which issue(s) this PR fixes:
Closes #4425

Special notes for your reviewer:

Replace ESLint with Biome for linting and formatting the Node.js SDK,
using Biome's standard recommended rules.

Changes:
- Remove eslint and globals dependencies
- Add @biomejs/biome with default recommended rules
- Update lint script to use biome check --write
- Apply Biome formatting (double quotes, consistent spacing)
- Prefix unused callback parameters with underscore
- Replace forEach with for...of to avoid implicit return
- Replace TypeScript 'any' types with 'unknown'

Signed-off-by: Sadique Azmi <sadiquemobaraka5@gmail.com>
@github-actions github-actions bot added kind/cleanup Refactoring code, fixing up documentation, etc size/XL labels Jan 17, 2026
@github-actions
Copy link
Copy Markdown

This PR exceeds the recommended size of 1000 lines. Please make sure you are NOT addressing multiple issues with one PR. Note this PR might be rejected due to its size.

@@ -0,0 +1,24 @@
{
"$schema": "https://biomejs.dev/schemas/2.3.11/schema.json",
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

It looks like this line is indented with spaces and others with tabs

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

My bad. I added this from my work machine, and the IDE there has different tab/space rules. I’ll fix it.

@steven-supersolid
Copy link
Copy Markdown
Collaborator

Everything else looks great

@github-actions
Copy link
Copy Markdown

This PR exceeds the recommended size of 1000 lines. Please make sure you are NOT addressing multiple issues with one PR. Note this PR might be rejected due to its size.

@markmandel markmandel enabled auto-merge (squash) January 20, 2026 00:50
@markmandel
Copy link
Copy Markdown
Collaborator

/gcbrun

@agones-bot
Copy link
Copy Markdown
Collaborator

Build Succeeded 🥳

Build Id: d3f3412e-4bc7-431a-80a5-6ade8b92a0e0

The following development artifacts have been built, and will exist for the next 30 days:

A preview of the website (the last 30 builds are retained):

To install this version:

git fetch https://github.com/googleforgames/agones.git pull/4426/head:pr_4426 && git checkout pr_4426
helm install agones ./install/helm/agones --namespace agones-system --set agones.image.registry=us-docker.pkg.dev/agones-images/ci --set agones.image.tag=1.56.0-dev-87c3b20

@markmandel markmandel merged commit 040d928 into agones-dev:main Jan 20, 2026
5 checks passed
@smazmi smazmi deleted the chore-nodejs-sdk-biome-linting branch January 20, 2026 10:41
mnthe pushed a commit to mnthe/agones that referenced this pull request Mar 23, 2026
)

* chore(sdk/nodejs): migrate linting from ESLint to Biome

Replace ESLint with Biome for linting and formatting the Node.js SDK,
using Biome's standard recommended rules.

Changes:
- Remove eslint and globals dependencies
- Add @biomejs/biome with default recommended rules
- Update lint script to use biome check --write
- Apply Biome formatting (double quotes, consistent spacing)
- Prefix unused callback parameters with underscore
- Replace forEach with for...of to avoid implicit return
- Replace TypeScript 'any' types with 'unknown'

Signed-off-by: Sadique Azmi <sadiquemobaraka5@gmail.com>

* Fix formatting in biome.json

---------

Signed-off-by: Sadique Azmi <sadiquemobaraka5@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

kind/cleanup Refactoring code, fixing up documentation, etc size/XL

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Move Node SDK linting to biome

4 participants