Open Anion11 opened 1 week ago
I would like to be able to correct double quotes to single quotes in variables (specifically in variables, not attributes)
const variable = "test"
or
+mixin-name({ text: "test" })
const variable = 'test'
+mixin-name({ text: 'test' })
Maybe there is already such a function and I'm doing something wrong?
My .prettierrc:
{ "plugins": ["@prettier/plugin-pug"], "printWidth": 100, "tabWidth": 2, "useTabs": false, "semi": false, "singleQuote": true, "quoteProps": "as-needed", "trailingComma": "none", "bracketSpacing": true, "bracketSameLine": false, "arrowParens": "avoid", "htmlWhitespaceSensitivity": "css", "singleAttributePerLine": true, "pugIdNotation": "as-is", "pugAttributeSeparator": "none", }
Did you tried all combinations with pugSingleQuote?
yes, pugSingleQuote doesn't help either
Request / Idea
I would like to be able to correct double quotes to single quotes in variables (specifically in variables, not attributes)
Input
or
Expected Output
or
Maybe there is already such a function and I'm doing something wrong?
My .prettierrc: