Skip to content

feat: migrate from ESLint/Prettier to Biome #1701

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

taeold
Copy link
Contributor

@taeold taeold commented Jun 5, 2025

No description provided.

…rmatting

- Add Biome as a modern, fast alternative to ESLint + Prettier
- Configure Biome to match existing code style (spaces, semicolons, single quotes)
- Update npm scripts to use Biome commands (format, lint, lint:fix)
- Remove ESLint and Prettier dependencies and config files
- Configure Biome to ignore proto/, mocha/, and config files
- Disable style rules that would require massive code changes
- Keep only essential linting rules for code quality

Performance: 10-100x faster (202 files in 33ms vs several seconds)

BREAKING CHANGE: ESLint and Prettier are no longer used. Use 'npm run lint' and 'npm run format' with Biome instead.
taeold added 2 commits June 5, 2025 14:06
- Apply Biome's opinionated formatting across the codebase
- Updates include:
  - Closing parentheses moved to same line for arrow functions
  - Multi-parameter constructors formatted on separate lines
  - Unnecessary object key quotes removed
  - Better string concatenation indentation
- These changes improve code readability and consistency
- Convert RegExp constructors to regex literals (better performance)
- Disable noUselessTernary and noApproximativeNumericConstant rules
  - The ternary expressions are intentional for clarity
  - The PI test is checking a specific value, not Math.PI
- All tests now pass with npm run lint
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.

1 participant