Skip to content
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

chore: replace eslint and prettier with biomejs #32

Open
wants to merge 10 commits into
base: main
Choose a base branch
from

Conversation

nazarhussain
Copy link

Motivation

Use the advance and consistent tooling across the repos.

Description

  • Remove the eslint
  • Remove the prettier
    • Add biomejs dependency
  • Add biomejs configuration
  • Update code as per new linting rules

Steps to test or reproduce

  • Run all tests

@nazarhussain nazarhussain changed the base branch from nh/eraseable-types to main March 25, 2025 15:45
Copy link

github-actions bot commented Mar 25, 2025

Performance Report

✔️ no performance regression detected

Full benchmark results
Benchmark suite Current: 848f537 Previous: null Ratio
sum array with raw for loop 933.66 us/op
sum array with reduce 9.7955 ms/op
sum array with reduce beforeEach 80.584 us/op
sum array with reduce before beforeEach 81.692 us/op
sum array with reduce high threshold 9.8331 ms/op
sum array with reduce no threshold 9.8324 ms/op

by benchmarkbot/action

Copy link
Member

@matthewkeil matthewkeil left a comment

Choose a reason for hiding this comment

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

Overall looks great! Just a couple small details that I noticed

@@ -13,7 +13,7 @@ export async function getCurrentCommitInfo(): Promise<{
const branchStr = await shell("git branch --show-current");
const timestamp = parseInt(timestampStr, 10);

if (!timestamp || isNaN(timestamp)) {
if (!timestamp || Number.isNaN(timestamp)) {
Copy link
Author

Choose a reason for hiding this comment

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

@matthewkeil This usage is different than the Number namespace rule. This is safety fix as the behavior of global isNaN and Number.isNaN is different. Global instance coerce the input to number before checking it, later one check what the given input is.

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