Skip to content
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

Option to use double quotes (") as escape character #476

Merged
merged 4 commits into from
Aug 5, 2024

Conversation

yegortokmakov
Copy link
Contributor

Our team is using double quotes for strings and we have to manually edit generated interfaces to pass our linter. This PR adds Settings.doublequoteEscape which will use double quotes in generated interfaces if set to true. Default behavior stays unchanged.

Copy link

codecov bot commented Aug 4, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 98.52%. Comparing base (2cb6f45) to head (abc3501).
Report is 56 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #476      +/-   ##
==========================================
+ Coverage   98.48%   98.52%   +0.03%     
==========================================
  Files           9        9              
  Lines         661      676      +15     
  Branches      266      264       -2     
==========================================
+ Hits          651      666      +15     
  Misses         10       10              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

README.md Outdated
* If set to true, will use double quotes for strings
* @default false
*/
readonly doublequoteEscape: boolean;
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great can you remove the word readonly here? I'll get this released for you

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great can you remove the word readonly here? I'll get this released for you

done! thanks!

@mrjono1 mrjono1 merged commit efc9b8c into mrjono1:master Aug 5, 2024
4 checks passed
@yegortokmakov yegortokmakov deleted the doublequote branch August 5, 2024 12:08
@mrjono1
Copy link
Owner

mrjono1 commented Aug 6, 2024

@mrjono1
Copy link
Owner

mrjono1 commented Aug 6, 2024

Thankyou for the contribution

@yegortokmakov
Copy link
Contributor Author

thanks @mrjono1 !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants