Steps to Reproduce:
{"rules": {
"quotemark": [true, "single"],
}}
export const a = 1;Expect:
import with single quotes with no warning
Alternatively, it could check for other imports and use the quote style those do. Perhaps read .editorconfig
I'm really interested in this getting fixed up, but it looks like it's a dup of #21424, which itself was closed as being tracked by Microsoft/TypeScript#13270.
Yes, thanks @devrelm. This is a duplicate of Microsoft/TypeScript#13270 and really should be fixed upstream on the TypeScript side
As @adyavanapalli very well mentioned, you can edit the _typescript.json_ file to get around this issue on /Applications/Visual Studio Code.app/Contents/Resources/app/extensions/typescript/snippets/ for MacOS and C:\Program Files (x86)\Microsoft VS Code\resources\app\extensions\typescript\snippets\ for Windows.
Thx buddy.
adding "prettier.singleQuote":true, did the trick for me
Howdy @cengkuru ... where did you add prettier.singleQuote? Seems unrecognized in VS user settings. Thx!
@bjareczek I presume it is a plugin to the VS/VSC
Most helpful comment
As @adyavanapalli very well mentioned, you can edit the _typescript.json_ file to get around this issue on
/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/typescript/snippets/for MacOS andC:\Program Files (x86)\Microsoft VS Code\resources\app\extensions\typescript\snippets\for Windows.Thx buddy.