quotes

Control the quotes.

Possible options:

  • "preferDouble": Use double quotes as possible. However if there're quotes or escaped characters in strings, quotes will be kept as-is.
  • "preferSingle": Use single quotes as possible. However if there're quotes or \ characters in strings, quotes will be kept as-is.
  • "forceDouble": Use double quotes. However if there're escaped characters in strings, quotes will be kept as-is.
  • "forceSingle": Use single quotes. However if there're \ char or " char in strings, quotes will be kept as-is.

Default option is "preferDouble". We recommend to use double quotes because behavior in single quoted scalars is counter-intuitive.

Example for "preferDouble"

- "text"
- '"'

Example for "preferSingle"

- 'text'
- "'"

Example for "forceDouble"

- "text"

Example for "forceSingle"

- 'text'