-
Hello, In project boilerplate we are adding our configuration for biome and would be nice to download code already with formatted files, My only idea is to temporarily persist this codebase on drive, call Biome on it and then scrape formatted files back to memory. Is there better solution? Iam okay with accessing Biome API directly not via CLI interface (if it's possible and some binding for JavaScript is done). Thank you for your ideas! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Looks like biome supports |
Beta Was this translation helpful? Give feedback.
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 likeecho 'let a;' | biome format --stdin-file-path=file.js
https://biomejs.dev/reference/cli/#biome-format