馃搸 Create a new option to change new line style in the formatter #225
Labels
A-Formatter
Area: formatter
S-Help-wanted
Status: you're familiar with the code base and want to help the project
Description
At the moment, we always print
\n
when we format code. We should give the option to change that.The name should be
--newline-style
for the CLI, andnewlineStyle
in the configuration.Available options:
unix
=> current behaviour, print\n
;windows
=> it will print\r\n
;native
=> it will print\n
on UNIX OS and\r\n
on Windows;auto
=> it will use the line ending found in the first line of the file;Names are taken/inspired from
rustmft
: https://rust-lang.github.io/rustfmt/?version=v1.6.0&search=#newline_styleThe text was updated successfully, but these errors were encountered: