feat: Configure Biome for Consistent Code Style #2364
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR adds
biome.jsonto enforce consistent 2-space indentation and single quotes for JavaScript and CSS files. This aligns with project style guides, automates formatting via pre-commit hooks, and prevents manual style changes from being overwritten.Currently, our Biome setup relies on default settings, which violates Google coding style guidelines. Specifically:
js_style.txt:screen/8NaEr3SswN6qx6D) and CSS property values (as percss_style.txt:screen/9KCh8ZVQ4ByPeDR).screen/97ZZstQc4iH4Dsb) and JavaScript (screen/3crxm5peLvRE2kj) files.This configuration explicitly sets these rules to ensure full compliance.
Benefits:
To Test:
Make a style-violating change in a
.jsor.cssfile and attempt to commit. Biome should automatically reformat it.Fixes #<issue_number_goes_here> 🦕