Typescript Ignores Quote Style Rules
See original GitHub issueI just installed Prettier 1.7.2
in VS Code 1.29.1
. Working in an Angular 7.1 (TypeScript).
Formatting a ts-file replaces all single quotes to double quotes.
It’s against tslint settings and / or editorconfig. What does the setting auto
mean?
How does the Prettier recognize the quote style? What does auto
mean?
Prettier should initially work with the optimal settings. …
Issue Analytics
- State:
- Created 5 years ago
- Comments:6 (3 by maintainers)
Top Results From Across the Web
What is the standard for use of quotes in Typescript?
The Google JavaScript Style Guide suggests to prefer single quote : "For consistency single-quotes (') are preferred to double-quotes ("). This is helpful...
Read more >Google TypeScript Style Guide
This Style Guide uses RFC 2119 terminology when using the phrases must, must not, should, should not, and may. All examples given are...
Read more >quotes - ESLint - Pluggable JavaScript Linter
This rule enforces the consistent use of either backticks, double, or single quotes. Options. This rule has two options, a string option and...
Read more >string-quotes - Stylelint
Specify single or double quotes around strings. ... Quotes within comments are ignored. ... Single quotes in a charset @-rule are ignored as...
Read more >Quotes for string literals should be used consistently
TypeScript static code analysis. Unique rules to find Bugs, Vulnerabilities, Security Hotspots, and Code Smells in your TYPESCRIPT code.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
What did you mean
auto
?auto
is only allowed to be used in--end-of-line
, which seems unrelated to quotes. Can you share a playground link that can reproduce the issue?Yes it works. Anyway
.prettierrc
is also a way to do this.