Request: quotemark
option in ts.FormatCodeOptions
of pretty printer in Typescript language service
#11320
Labels
API
Relates to the public API for TypeScript
Out of Scope
This idea sits outside of the TypeScript language design constraints
Suggestion
An idea for TypeScript
Feature Request/Suggestion:
As a user, I'd like to have option to configure the quotemark (single or double) in
ts.FormatCodeOptions
interface that can be used with the pretty printer in the TypeScript Language Service.Code generators and other utilities rely on the pretty printing capability to format typescript according to user preferences and most leverage the pretty printer capability in the . Some projects prefer single quotes and others double quotes.
The need was expressed a typescript-formatter issue and I have also found the need for configuring the preferred quotes in json-schema-to-typescript. I am sure others would like to be able to configure the quote preference too. I am open to suggestions to alternatives for formatting typescript, but I think it would be best if this was provided by the typescript language service.
TypeScript Version: Currently using 2.0.3
Expected behavior:
An option is available in the
ts.FormatCodeOptions
interface for the quotemark (single or double) similar to tslint. And output of pretty printer follows thequotemark
defined.Actual behavior:
I am not aware of an option to choose the quote mark.
The text was updated successfully, but these errors were encountered: