-
Notifications
You must be signed in to change notification settings - Fork 12k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature: Allow switch from single quotes to double quotes #2213
Comments
This would be really nice, in my work environment, we use the follwing:
Would be nice to make this optional. |
As angular-cli currently supports only single quotes: angular/angular-cli#2213
As angular-cli currently supports only single quotes: angular/angular-cli#2213
As angular-cli currently supports only single quotes: angular/angular-cli#2213
I usually work with java, so I am used to use double quotes. |
With #4248 you should be able to change the "quotemark": [
true,
"single"
], to "quotemark": [
true,
"double"
], and then do I don't think this feature is necessary, as it will be more effort than it's worth, especially now that there will be (hopefully) a quick fix. Granted, all new files will also give you lint errors since they will use single quotes, but doing a quick |
@delasteve Thanks for this suggestion, I did not know about that tslint feature. |
@Springrbua, the linter will change single quotes to double quotes. It will keep the inside quotes the same.
|
@delasteve ah thats nice! Thanks a lot. Do you know when this feature will be available in angular-cli? |
It will be available next release. It got merged in yesterday. |
@delasteve Thanks a lot for the information, can't wait for this feature :) |
Closing as answered (and made possible) by @delasteve. Cheers! |
This should be available soon-ish via automatically running TS Lint fixers on generators. This is being tracked in #6272. |
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
I think it would be useful to be able to configure if single quotes or double quotes are used in files generated by the cli.
This could e.g. be configured in angular-cli.json.
The text was updated successfully, but these errors were encountered: