plugin-pug: Bug: Doesn't take the singleQuote option

Since the 1.0.10, singlequote are transformed into double quotes even if I set singleQuote option. I tried with the 1.0.9 and I don’t have this bug.

For example:

- const faker = require('faker')

is transformed into

- const faker = require("faker")

About this issue

  • Original URL
  • State: closed
  • Created 5 years ago
  • Comments: 28 (18 by maintainers)

Most upvoted comments

@Applelo Thank to the lovely work of @shadowgate15 we now released https://www.npmjs.com/package/@prettier/plugin-pug/v/1.18.0 ❀️ πŸ™Œ

Spolier: it won’t work 😭 sorry πŸ˜•

Need to investigate more, also maybe I need to create a breaking change 😬

Sorry to not have test your previous answer. I was and I am currently busy at work. I test this when I have time πŸ˜ƒ

No problem, take your time. Your are already nice to answer to my requests ^^

Sorry, but I think I will only find time next weekend

Yeah, maybe in the future I will work with Vue and Pug. I will make you soon a sample with complex pug code.

Ok, using another formatter means a huge problem 😏

So I will work on it the next days

I need two things from you

  1. are you using any frameworks like vue or angular?
  2. give me some pug code with complex examples how you want to have the formatted result. Then I can use it as input and output for my tests