-
-
Notifications
You must be signed in to change notification settings - Fork 482
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(graphql_formatter): don't add new line in block comments in CLRF …
…files (#4527)
- Loading branch information
1 parent
4721b6c
commit 352556a
Showing
4 changed files
with
49 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 6 additions & 0 deletions
6
crates/biome_graphql_formatter/tests/specs/graphql/newline_clrf.graphql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
type SomeTime { | ||
""" | ||
Here is a string | ||
""" | ||
id: ID! | ||
} |
40 changes: 40 additions & 0 deletions
40
crates/biome_graphql_formatter/tests/specs/graphql/newline_clrf.graphql.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
--- | ||
source: crates/biome_formatter_test/src/snapshot_builder.rs | ||
info: graphql/newline_clrf.graphql | ||
--- | ||
# Input | ||
|
||
```graphql | ||
type SomeTime { | ||
""" | ||
Here is a string | ||
""" | ||
id: ID! | ||
} | ||
``` | ||
|
||
|
||
============================= | ||
|
||
# Outputs | ||
|
||
## Output 1 | ||
|
||
----- | ||
Indent style: Tab | ||
Indent width: 2 | ||
Line ending: LF | ||
Line width: 80 | ||
Bracket spacing: true | ||
Quote style: Double Quotes | ||
----- | ||
|
||
```graphql | ||
type SomeTime { | ||
""" | ||
Here is a string | ||
""" | ||
id: ID! | ||
} | ||
``` |