Skip to content

chore(lint): stricter biome config#1723

Merged
fb55 merged 8 commits intomasterfrom
shared-config
Mar 4, 2026
Merged

chore(lint): stricter biome config#1723
fb55 merged 8 commits intomasterfrom
shared-config

Conversation

@fb55
Copy link
Owner

@fb55 fb55 commented Mar 4, 2026

No description provided.

@fb55 fb55 marked this pull request as ready for review March 4, 2026 22:16
Copilot AI review requested due to automatic review settings March 4, 2026 22:16
@fb55 fb55 enabled auto-merge (squash) March 4, 2026 22:16
@fb55 fb55 merged commit 4722808 into master Mar 4, 2026
14 checks passed
@fb55 fb55 deleted the shared-config branch March 4, 2026 22:17
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR tightens the repository’s Biome lint configuration (enabling additional rule groups and promoting several rules to error) and updates related tooling dependencies in package.json / package-lock.json.

Changes:

  • Expand biome.json linter rules beyond recommended, adding stricter suspicious, complexity, performance, and style rules.
  • Update dev tooling dependencies, including a major upgrade of vitest and @vitest/coverage-v8 to 4.0.18.
  • Refresh package-lock.json to reflect the updated dependency graph.

Reviewed changes

Copilot reviewed 2 out of 3 changed files in this pull request and generated 4 comments.

File Description
package.json Updates devDependencies (Biome range tweak; Vitest + coverage bumped to v4).
package-lock.json Large lockfile refresh reflecting the new Vitest/tooling dependency tree.
biome.json Adds multiple stricter Biome lint rules on top of recommended.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +53 to +59
"@vitest/coverage-v8": "^4.0.18",
"eslint": "^10.0.2",
"eslint-config-biome": "^2.1.3",
"tshy": "^3.3.2",
"typescript": "^5.9.3",
"typescript-eslint": "^8.56.1",
"vitest": "^3.2.4"
"vitest": "^4.0.18"
Copy link

Copilot AI Mar 4, 2026

Choose a reason for hiding this comment

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

vitest/@vitest/coverage-v8 were bumped to v4, but vitest@4.0.18 requires Node ^20 || ^22 || >=24 (see package-lock). The CI workflow currently runs tests on Node 18, so this change will make the Node 18 job fail. Either keep Vitest v3 to preserve Node 18 support, or update the CI matrix (and any stated support policy) to drop Node 18.

Copilot uses AI. Check for mistakes.
Comment on lines +53 to +59
"@vitest/coverage-v8": "^4.0.18",
"eslint": "^10.0.2",
"eslint-config-biome": "^2.1.3",
"tshy": "^3.3.2",
"typescript": "^5.9.3",
"typescript-eslint": "^8.56.1",
"vitest": "^3.2.4"
"vitest": "^4.0.18"
Copy link

Copilot AI Mar 4, 2026

Choose a reason for hiding this comment

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

PR title/scope is about stricter Biome linting, but this diff also includes a major Vitest upgrade (v3 -> v4). Since this can be a breaking tooling change (including Node version support), consider either splitting the Vitest bump into a separate PR or updating the PR title/description to reflect that broader change.

Copilot uses AI. Check for mistakes.
Comment on lines +49 to +53
"@biomejs/biome": "^2.4.4",
"@eslint/compat": "^2.0.2",
"@feedic/eslint-config": "^0.2.3",
"@types/node": "^25.3.3",
"@vitest/coverage-v8": "^3.2.4",
"@vitest/coverage-v8": "^4.0.18",
Copy link

Copilot AI Mar 4, 2026

Choose a reason for hiding this comment

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

@biomejs/biome is set to ^2.4.4, but the lockfile resolves 2.4.5. If the intent is to stay on 2.4.4 (e.g., to match the schema URL in biome.json), consider pinning the exact version; otherwise bump the range/schema so all three are aligned to reduce confusion.

Copilot uses AI. Check for mistakes.
Comment on lines 28 to +32
"rules": {
"recommended": true,
"suspicious": {
"noConstEnum": "off"
"noConstEnum": "off",
"noConstantBinaryExpressions": "error",
Copy link

Copilot AI Mar 4, 2026

Choose a reason for hiding this comment

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

This PR adds a number of new Biome rules. Since the lockfile installs @biomejs/biome@2.4.5 but biome.json still references the 2.4.4 schema, consider updating the $schema URL to match the installed Biome version so editors/validation stay in sync with the rule set.

Copilot uses AI. Check for mistakes.
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