Skip to content

Run formatting virtually #2855

Answered by sitole
sitole asked this question in Q&A
May 14, 2024 · 1 comments · 1 reply
Discussion options

You must be logged in to vote

Looks like biome supports format command with pipe containing code, you just need to provide filename to guess proper file type (in our case suitable). Whole call then will look like echo 'let a;' | biome format --stdin-file-path=file.js

https://biomejs.dev/reference/cli/#biome-format

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@sitole
Comment options

Answer selected by sitole
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant