-
Notifications
You must be signed in to change notification settings - Fork 450
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Code formating for Prettier #681
Comments
There exists an official formatting tool called Regarding Prettier, I'm not familiar with it. If it can act as a simple facade to our official tool, then why not (not sure if possible/consistent with how Prettier is supposed to be used). |
Ok thanks, is |
I have never used it with an editor integration, but it should be quite trivial. Even without an extension you can set up a "task" in VS Code which just runs the command. The Of course an extension would be more convenient. The existing (3rd party) VS Code extension has some pretty advanced features (like very smart autocompletion), but is quite out of date (perhaps a simpler extension which just runs official tools should be created and that would be easier to keep up to date). |
We want to focus on jsonnetfmt I think and use it as the source of truth (and all editors should use it for autoformatting Jsonnet). Closing this. If anyone has trouble using jsonnetfmt for their formatting needs, feel free to open an issue. |
Hello,
Is there any way to support formatting with Prettier for jsonnet files? I noticed this issue #73 talking about a formatting tool but I'm unfamiliar with go fmt. Could it be ported to Prettier?
Many thanks
The text was updated successfully, but these errors were encountered: