Adding the possibility of inserting an arbitrary EOF #48
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
@Quramy @olegstepura first of all, thank you for your great work!
In our project we use git with different operating systems, and for the convenience of development we decided to store our files with
LF
ending. We usetyped-css-modules-loader
which passes the parameters to thetyped-css-modules
via options:the problem is that when the programmer that uses
Mac os
generates a change, then thed.ts
file is saved in theLF
format, and if the programmer that usesWindows
does this, thed.ts
file is saved in theCRLF
format. Because of this we see many changed files in which there are actually no changes:all changes are just EOL:
we needed to directly specify the type of
EOL
that we need, but unfortunately this option was not available and we had to create a fork. Perhaps this option will be useful to other users, so I created a pr.usage with
typed-css-modules-loader
:If there are no options, then by default, there will be an old behavior with an
os.EOL