question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Typescript Ignores Quote Style Rules

See original GitHub issue

I 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:closed
  • Created 5 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
ikatyangcommented, Dec 2, 2018

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?

0reactions
domskecommented, Dec 12, 2018

Yes it works. Anyway .prettierrc is also a way to do this.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found