Skip to content

Maintenance: improve linting checks #4549

@dreamorosi

Description

@dreamorosi

Summary

When reviewing the codebase we've noticed that there's a mismatch between the linting rules/expectations in the IDE and what's being linted as part of pre-commit hooks and CI.

This is because CI and hooks only notify the developer on errors, while the IDE also emits warnings and info level type of issues.

For example, here's a screenshot from a recent CI run; notice how even though there are linting issues, their severity makes them hidden and leaves the CI green.

Image

Additionally, IDE issues are shown only if developers have the Biome extension/plugin installed, which might not be the case.

We should update our biome.json config file and raise the severity for all rules we care to error, so that they're captured by automations.

Why is this needed?

Over time, especially as we attract new contributors of varying degrees of skill level or AI usage, this type of inconsistency is bound to leave the codebase in a worse state due to subtle-but-not-critical issues being ignored by most linting automation.

Which area does this relate to?

Other

Solution

No response

Acknowledgment

Future readers

Please react with 👍 and your use case to help us understand customer demand.

Sub-issues

Metadata

Metadata

Assignees

Labels

completedThis item is complete and has been merged/shippedinternalPRs that introduce changes in governance, tech debt and chores (linting setup, baseline, etc.)

Type

No type

Projects

Status

Shipped

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions