Skip to content

Consistent Quotation Style #125000

@hediet

Description

@hediet

The codebase currently uses both single and double quoted string literals.

I propose to enable the ESLint rule quotes: ["error", "single", { "avoidEscape": true }] and thus to use single quoted string literals where possible.

Not all strings in double quotations are externalized already ("noSelection").

Benefits

Disadvantages

  • Might be a disruptive change. Could be enforced only for new/modified files however.
  • Externalized strings must be identified with a different approach. It seems they are all wrapped in a localize call, which should be easy to recognize by static analysis.
  • The current ES Lint rule needs to be updated

Metadata

Metadata

Labels

engineeringVS Code - Build / issue tracking / etc.under-discussionIssue is under discussion for relevance, priority, approach

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions