Mohammed
Mohammed4mo ago

How to specify unstable fmt options?

I'm a bit confused where to specify these options? I wasn't able to trigger any autocomplete suggestions. Should it go into fmt.unstable.component or into unstable directly? Or somewhere else?
4 Replies
bartlomieju
bartlomieju4mo ago
Into the unstable property: { "unstable": ["fmt-component"] }
Mohammed
MohammedOP4mo ago
Thanks! I think that worked The cli tells me fmt-css is not a valid unstable feature in the v2 RC. Is that expected or am I doing something wrong?
bartlomieju
bartlomieju4mo ago
It's expected. Only component is unstable in Deno 2 Css is just supported out of the box
Mohammed
MohammedOP4mo ago
Just FYI, the deno settings for indentation size and tabs/spaces don't really seem to take precedence in vscode. Was still necessary for me to adjust the editor settings (I'm sure it's fine when running deno fmt )

Did you find this page helpful?