-
Notifications
You must be signed in to change notification settings - Fork 37.6k
Closed
Labels
engineeringVS Code - Build / issue tracking / etc.VS Code - Build / issue tracking / etc.under-discussionIssue is under discussion for relevance, priority, approachIssue is under discussion for relevance, priority, approach
Milestone
Description
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
- This would allow to use prettier for formatting (see Investigate adopting Prettier for VS Code #124765) and is currently the biggest blocker for adoption.
- More conventional. It is uncommon to assign semantic meaning to the quotation style.
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
localizecall, which should be easy to recognize by static analysis. - The current ES Lint rule needs to be updated
connor4312 and eamodiojrieken
Metadata
Metadata
Assignees
Labels
engineeringVS Code - Build / issue tracking / etc.VS Code - Build / issue tracking / etc.under-discussionIssue is under discussion for relevance, priority, approachIssue is under discussion for relevance, priority, approach