You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
Using @std/yamlstringify and deno fmt on the file afterwards the file is reformatted.
This should not happen. stringify should output the same format or allow for the same format to be configured.
Currently, this involves the quotes style (' vs ") where @std/yaml uses ' while deno fmt uses ".
There is no StringifyOptions to configure this behaviour and there is no way to call deno fmt from code? (Or is there?)
Describe the solution you'd like
Ideally @std/yamlstringify should output YAML which is already in the format expected by deno fmt. Being able to configure @std/yaml would also be helpful.
Describe alternatives you've considered
Being able to use deno fmt from code like Deno.fmt(…).
The text was updated successfully, but these errors were encountered:
There is, as long as you don't mind running it against a file on disk (not a string/buffer in memory) and as long as you're able to run your code with --allow-run permissions:
Changing that option would also change the code. And I would prefer less complex config, ideally defaults.
For now I went with excluding yaml in the deno.jsonc as they are generated by @std/yaml. But in the long run I shouldn’t need this, therefore this issue.
Is your feature request related to a problem? Please describe.
Using
@std/yaml
stringify
anddeno fmt
on the file afterwards the file is reformatted.This should not happen.
stringify
should output the same format or allow for the same format to be configured.Currently, this involves the quotes style (
'
vs"
) where@std/yaml
uses'
whiledeno fmt
uses"
.There is no
StringifyOptions
to configure this behaviour and there is no way to calldeno fmt
from code? (Or is there?)Describe the solution you'd like
Ideally
@std/yaml
stringify
should output YAML which is already in the format expected bydeno fmt
. Being able to configure@std/yaml
would also be helpful.Describe alternatives you've considered
Being able to use
deno fmt
from code likeDeno.fmt(…)
.The text was updated successfully, but these errors were encountered: