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

Tweak scripts #3

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Tweak scripts #3

wants to merge 1 commit into from

Conversation

toyamarinyon
Copy link
Contributor

The biome check command applies both biome format and biome lint, so the format script is enough for biome check --apply.

https://biomejs.dev/guides/getting-started/#usage

"format": "pnpm format:biome:format && pnpm format:biome:check",
"format:biome:format": "biome format --write .",
"format:biome:check": "biome check --apply ."
"lint": "biome lint .",
Copy link
Collaborator

Choose a reason for hiding this comment

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

From the user's point of view, I think biome lint is not sufficient since it does not check format files and organize imports.
I think it would be better to leave biome check as it is. What do you think?

"format:biome:format": "biome format --write .",
"format:biome:check": "biome check --apply ."
"lint": "biome lint .",
"format": "biome check --apply ."
Copy link
Collaborator

Choose a reason for hiding this comment

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

This one looks good! Thank you 😄

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.

None yet

2 participants