Every time I use deno fmt, it automatically converts my single quotes into double quotes.
To be more specific, when fmt is applied to a statement like this:
console.log( 'Deno' );
The statement is changed to:
console.log("Deno");
The expected behavior is to continue using single quotes by default.
Is there any configuration of fmt options?
You can now change the default behaviour of deno fmt by creating a deno.json file:
{
"fmt": {
"options": {
"singleQuote": true
}
}
}
Currently, there's no way to change default settings. Adding a config flag it's something that's being worked on, you can follow this issue
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With