trivago / prettier-plugin-twig-melody

Code formatting plugin for Prettier which can handle Twig/Melody templates
Apache License 2.0
155 stars 35 forks source link

Choose quote character depending on string contents #25

Closed twbartel closed 4 years ago

twbartel commented 4 years ago

In response to issue #24, this PR chooses the quotation characters (single or double quote) around a string literal not just depending on the options passed in, but also depending on the string contents: