File tree Expand file tree Collapse file tree 5 files changed +10
-10
lines changed
crates/biome_configuration/src Expand file tree Collapse file tree 5 files changed +10
-10
lines changed Original file line number Diff line number Diff line change @@ -81,8 +81,8 @@ pub struct CssFormatterConfiguration {
8181 #[ serde( skip_serializing_if = "Option::is_none" ) ]
8282 pub indent_width : Option < IndentWidth > ,
8383
84- /// The type of line ending applied to CSS (and its super languages) files.
85- #[ bpaf( long( "css-formatter-line-ending" ) , argument( "lf|crlf|cr" ) ) ]
84+ /// The type of line ending applied to CSS (and its super languages) files. `auto` uses CRLF on Windows and LF on other platforms.
85+ #[ bpaf( long( "css-formatter-line-ending" ) , argument( "lf|crlf|cr|auto " ) ) ]
8686 #[ serde( skip_serializing_if = "Option::is_none" ) ]
8787 pub line_ending : Option < LineEnding > ,
8888
Original file line number Diff line number Diff line change @@ -50,8 +50,8 @@ pub struct GraphqlFormatterConfiguration {
5050 #[ bpaf( long( "graphql-formatter-indent-width" ) , argument( "NUMBER" ) ) ]
5151 pub indent_width : Option < IndentWidth > ,
5252
53- /// The type of line ending applied to GraphQL files.
54- #[ bpaf( long( "graphql-formatter-line-ending" ) , argument( "lf|crlf|cr" ) ) ]
53+ /// The type of line ending applied to GraphQL files. `auto` uses CRLF on Windows and LF on other platforms.
54+ #[ bpaf( long( "graphql-formatter-line-ending" ) , argument( "lf|crlf|cr|auto " ) ) ]
5555 pub line_ending : Option < LineEnding > ,
5656
5757 /// What's the max width of a line applied to GraphQL files. Defaults to 80.
Original file line number Diff line number Diff line change @@ -65,8 +65,8 @@ pub struct HtmlFormatterConfiguration {
6565 #[ serde( skip_serializing_if = "Option::is_none" ) ]
6666 pub indent_width : Option < IndentWidth > ,
6767
68- /// The type of line ending applied to HTML (and its super languages) files.
69- #[ bpaf( long( "html-formatter-line-ending" ) , argument( "lf|crlf|cr" ) , optional) ]
68+ /// The type of line ending applied to HTML (and its super languages) files. `auto` uses CRLF on Windows and LF on other platforms.
69+ #[ bpaf( long( "html-formatter-line-ending" ) , argument( "lf|crlf|cr|auto " ) , optional) ]
7070 #[ serde( skip_serializing_if = "Option::is_none" ) ]
7171 pub line_ending : Option < LineEnding > ,
7272
Original file line number Diff line number Diff line change @@ -74,10 +74,10 @@ pub struct JsFormatterConfiguration {
7474 #[ serde( skip_serializing_if = "Option::is_none" ) ]
7575 pub indent_width : Option < IndentWidth > ,
7676
77- /// The type of line ending applied to JavaScript (and its super languages) files.
77+ /// The type of line ending applied to JavaScript (and its super languages) files. `auto` uses CRLF on Windows and LF on other platforms.
7878 #[ bpaf(
7979 long( "javascript-formatter-line-ending" ) ,
80- argument( "lf|crlf|cr" ) ,
80+ argument( "lf|crlf|cr|auto " ) ,
8181 optional
8282 ) ]
8383 #[ serde( skip_serializing_if = "Option::is_none" ) ]
Original file line number Diff line number Diff line change @@ -77,8 +77,8 @@ pub struct JsonFormatterConfiguration {
7777 #[ serde( skip_serializing_if = "Option::is_none" ) ]
7878 pub indent_width : Option < IndentWidth > ,
7979
80- /// The type of line ending applied to JSON (and its super languages) files.
81- #[ bpaf( long( "json-formatter-line-ending" ) , argument( "lf|crlf|cr" ) ) ]
80+ /// The type of line ending applied to JSON (and its super languages) files. `auto` uses CRLF on Windows and LF on other platforms.
81+ #[ bpaf( long( "json-formatter-line-ending" ) , argument( "lf|crlf|cr|auto " ) ) ]
8282 #[ serde( skip_serializing_if = "Option::is_none" ) ]
8383 pub line_ending : Option < LineEnding > ,
8484
You can’t perform that action at this time.
0 commit comments