-
-
Notifications
You must be signed in to change notification settings - Fork 22
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
feat(sql)!: respect endOfLine
option from prettier
core
#207
Conversation
🦋 Changeset detectedLatest commit: ee030fd The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
Codecov Report
@@ Coverage Diff @@
## master #207 +/- ##
==========================================
+ Coverage 83.96% 84.54% +0.58%
==========================================
Files 7 7
Lines 106 110 +4
Branches 27 28 +1
==========================================
+ Hits 89 93 +4
Misses 17 17
Continue to review full report at Codecov.
|
Thanks for this PR! But should we reuse the https://prettier.io/docs/en/options.html#end-of-line The previous behavior could be a new option value |
Thanks for comment.
It means the end of other each line is always
In previous version, it always removes a final newline, doesn't preserve original. There is a final newline here:
After formatting, the final newline have been removed: |
We can adapt this in
This would a BREAKING CHANGE as prettier use |
I added a new commit. Do you mean like this? |
Hmm, I think it is a strange that
Sorry, it's my misunderstanding. |
All |
For that reason, I think we just need an option to control the final newline for this plugin. |
Isn’t prettier core doing this also? |
It seems there is no way to get original So a new option seems really needed, thanks! |
I'm thinking is there any user case to have no final new line support? Prettier always print final new line AFAIK. |
endOfLine
option from prettier
core
8c2a3ba
to
ee030fd
Compare
@frozenbonito Thanks for your contribution! |
I agree with you. Thank you for refactoring and merging! |
close #204