chore(sdk/nodejs): migrate linting from ESLint to Biome#4426
chore(sdk/nodejs): migrate linting from ESLint to Biome#4426markmandel merged 2 commits intoagones-dev:mainfrom
Conversation
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>
|
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. |
sdks/nodejs/biome.json
Outdated
| @@ -0,0 +1,24 @@ | |||
| { | |||
| "$schema": "https://biomejs.dev/schemas/2.3.11/schema.json", | |||
There was a problem hiding this comment.
It looks like this line is indented with spaces and others with tabs
There was a problem hiding this comment.
My bad. I added this from my work machine, and the IDE there has different tab/space rules. I’ll fix it.
|
Everything else looks great |
|
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. |
|
/gcbrun |
|
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: |
) * 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>
What type of PR is this?
/kind cleanup
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:
eslintandglobalsdependencies with@biomejs/biomelintscript fromeslint --fixtobiome check --write_forEachwithfor...ofto avoid implicit return valuesanytypes withunknownWhich issue(s) this PR fixes:
Closes #4425
Special notes for your reviewer:
make run-sdk-conformance-test-nodenpm test(78 specs, 0 failures)