typescript-formatter icon indicating copy to clipboard operation
typescript-formatter copied to clipboard

Remove byte order markers

Open johan-gorter opened this issue 10 years ago • 0 comments

We have been using typescript-formatter a lot lately as pre-commit hook for everyone on the team. We found out however, that there is still one thing that is not normalized by typescript-formatter, the use of byte-order-markers. Some files in our repository now have them and some don't.

It would be very nice if typescript-formatter would always strip these (or to have an option to either strip them or add them).

A byte order marker is 3 bytes (EF BB BF) at the beginning of each file. They are added by some windows tools, but are generally considered to be legacy.

Thanks in advance.

johan-gorter avatar Oct 14 '15 12:10 johan-gorter