Skip to content
Discussion options

You must be logged in to vote

Helix expects the formatter to read the file from stdin, and output the formatted file to stdout.

Prettier doesn't do this by default.

Try prettier with the --stdin option maybe:

[[language]]
name = "svelte"
auto-format = true
formatter = { command = 'prettier', args = ["--plugin", "prettier-plugin-svelte", "--stdin"] }

Replies: 1 comment 1 reply

Comment options

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

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