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

build: add biome #109

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

build: add biome #109

wants to merge 5 commits into from

Conversation

janndriessen
Copy link
Collaborator

Adds biome to handle formatting and linting. Removes eslint and prettier.

biome.json Outdated
"noForEach": "warn"
},
"style": {
"noNonNullAssertion": "off",
Copy link
Collaborator Author

@janndriessen janndriessen Jan 3, 2025

Choose a reason for hiding this comment

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

This one can be turned to warn once it works better to disable lines or files in biome v2: biomejs/biome#4569.

Until then I'd recommend to keep lines like // eslint-disable-next-line @typescript-eslint/no-explicit-any in the project to be able to simple find/replace later on.

Let me know what you think? @0xonramp @tokdaniel

biome.json Outdated
"noUselessElse": "off"
},
"suspicious": {
"noExplicitAny": "off",
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Same for this rule.

@@ -1,12 +1,45 @@
{
Copy link
Collaborator Author

@janndriessen janndriessen Jan 3, 2025

Choose a reason for hiding this comment

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

Please check the config and let me know if you'd add/edit anything. @0xonramp @tokdaniel

It should be pretty similar to what we had. The only changes as you can see from the altered files is mostly imports and colon for every end of line e.g. props in an object.

tokdaniel
tokdaniel previously approved these changes Jan 3, 2025
Copy link
Collaborator

@tokdaniel tokdaniel left a comment

Choose a reason for hiding this comment

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

I think it overall looks great, maybe take a look at what files to ignore. Im gonna pull in to the PnL Branch and add the kubb files for example.

@janndriessen janndriessen marked this pull request as ready for review January 6, 2025 13:46
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