Simplest command(s?) to format code AND organise imports like Prettier? #3523
Answered
by
Conaclos
cyrus01337
asked this question in
Q&A
-
Currently I use the following I cobbled together after scouring the documentation, however, it feels (and probably is) way too long. biome format --write --skip-errors --no-errors-on-unmatched --changed --since=main --log-level=none
biome lint --write --unsafe --skip-errors --no-errors-on-unmatched --changed --since=main --log-level=none The end goal is to get as close to how Prettier + import sort plugin behaves as reasonable. Any thoughts? |
Beta Was this translation helpful? Give feedback.
Answered by
Conaclos
Jul 26, 2024
Replies: 1 comment 3 replies
-
If you use biome check --linter-enabled=false --write --no-errors-on-unmatched --changed --log-level=none |
Beta Was this translation helpful? Give feedback.
3 replies
Answer selected by
cyrus01337
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
biome check
executes all Biome tools (linter, formatter, and the import sorter). You can disable the linter using--linter-enabled=false
.If you use
write
, I am not sure that--skip-errors
is so useful…Also, do you really need to specify
--since
?