Last active
November 5, 2024 16:17
-
-
Save maximtrp/8f78ae83f43f3a79d099581e47655d21 to your computer and use it in GitHub Desktop.
Helix Editor + Svelte + Prettier configuration
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[[language]] | |
name = "svelte" | |
# Format when saving | |
auto-format = true | |
# Replace path to prettier-plugin-svelte if needed (this one is for those using macOS and brew) | |
# You do NOT need --stdin arg as suggested by some | |
# Then look at helix logs to make sure you have correctly configured it | |
formatter = { command = 'prettier', args = ["--plugin=/opt/homebrew/lib/node_modules/prettier-plugin-svelte/plugin.js", "--parser=svelte"] } | |
# Optional (only if you are using and configured eslint before) | |
# language-servers = [ "svelteserver", "eslint" ] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment