Skip to content

Commit bc9955f

Browse files
authored
fix(config): Change enumDeclaration.memberSpacing options to camelCase (#27)
dprint uses camelcase for its configuration options. This change modifies the enumDeclaration.memberSpacing options to conform to this standard.
1 parent 04dfcf4 commit bc9955f

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

src/configuration/types.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -81,18 +81,18 @@ pub enum MemberSpacing {
8181
/// Maintains whether a newline or blankline is used.
8282
Maintain,
8383
/// Forces a new line between members.
84-
#[serde(rename = "newline")]
84+
#[serde(rename = "newLine")]
8585
NewLine,
8686
/// Forces a blank line between members.
87-
#[serde(rename = "blankline")]
87+
#[serde(rename = "blankLine")]
8888
BlankLine,
8989
}
9090

9191
generate_str_to_from![
9292
MemberSpacing,
9393
[Maintain, "maintain"],
94-
[BlankLine, "blankline"],
95-
[NewLine, "newline"]
94+
[BlankLine, "blankLine"],
95+
[NewLine, "newLine"]
9696
];
9797

9898
/// Where to place the next control flow within a control flow statement.

tests/specs/declarations/enum/EnumDeclaration_MemberSpacing_Blankline.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
~~ enumDeclaration.memberSpacing: blankline ~~
2-
== should format with blanklines ==
1+
~~ enumDeclaration.memberSpacing: blankLine ~~
2+
== should format with blankLines ==
33
declare enum Test {
44
member1,
55

tests/specs/declarations/enum/EnumDeclaration_MemberSpacing_Newline.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
~~ enumDeclaration.memberSpacing: newline ~~
2-
== should format with newlines ==
1+
~~ enumDeclaration.memberSpacing: newLine ~~
2+
== should format with newLines ==
33
declare enum Test {
44
member1,
55

0 commit comments

Comments
 (0)