Skip to content

Commit

Permalink
fix: fix dprint plugin configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
g-plane committed Aug 23, 2024
1 parent ccd8c04 commit 3e968c1
Showing 1 changed file with 26 additions and 13 deletions.
39 changes: 26 additions & 13 deletions dprint_plugin/src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,8 @@ pub(crate) fn resolve_config(
});
Some(Comma::Never)
}
}),
})
.or(Some(Comma::Never)),
enum_values_definition_comma: get_nullable_value::<String>(
&mut config,
"enumValuesDefinition.comma",
Expand All @@ -145,7 +146,8 @@ pub(crate) fn resolve_config(
});
Some(Comma::Never)
}
}),
})
.or(Some(Comma::Never)),
fields_definition_comma: get_nullable_value::<String>(
&mut config,
"fieldsDefinition.comma",
Expand All @@ -164,7 +166,8 @@ pub(crate) fn resolve_config(
});
Some(Comma::Never)
}
}),
})
.or(Some(Comma::Never)),
input_fields_definition_comma: get_nullable_value::<String>(
&mut config,
"inputFieldsDefinition.comma",
Expand All @@ -183,7 +186,8 @@ pub(crate) fn resolve_config(
});
Some(Comma::Never)
}
}),
})
.or(Some(Comma::Never)),
list_value_comma: get_nullable_value::<String>(
&mut config,
"listValue.comma",
Expand Down Expand Up @@ -240,7 +244,8 @@ pub(crate) fn resolve_config(
});
Some(Comma::Never)
}
}),
})
.or(Some(Comma::Never)),
schema_extension_comma: get_nullable_value::<String>(
&mut config,
"schemaExtension.comma",
Expand All @@ -259,7 +264,8 @@ pub(crate) fn resolve_config(
});
Some(Comma::Never)
}
}),
})
.or(Some(Comma::Never)),
selection_set_comma: get_nullable_value::<String>(
&mut config,
"selectionSet.comma",
Expand All @@ -278,7 +284,8 @@ pub(crate) fn resolve_config(
});
Some(Comma::Never)
}
}),
})
.or(Some(Comma::Never)),
variable_definitions_comma: get_nullable_value::<String>(
&mut config,
"variableDefinitions.comma",
Expand Down Expand Up @@ -405,7 +412,8 @@ pub(crate) fn resolve_config(
});
Some(SingleLine::Never)
}
}),
})
.or(Some(SingleLine::Never)),
fields_definition_single_line: get_nullable_value::<String>(
&mut config,
"fieldsDefinition.singleLine",
Expand All @@ -423,7 +431,8 @@ pub(crate) fn resolve_config(
});
Some(SingleLine::Never)
}
}),
})
.or(Some(SingleLine::Never)),
implements_interfaces_single_line: get_nullable_value::<String>(
&mut config,
"implementsInterfaces.singleLine",
Expand Down Expand Up @@ -461,7 +470,8 @@ pub(crate) fn resolve_config(
});
Some(SingleLine::Never)
}
}),
})
.or(Some(SingleLine::Never)),
list_value_single_line: get_nullable_value::<String>(
&mut config,
"listValue.singleLine",
Expand Down Expand Up @@ -515,7 +525,8 @@ pub(crate) fn resolve_config(
});
Some(SingleLine::Never)
}
}),
})
.or(Some(SingleLine::Never)),
schema_extension_single_line: get_nullable_value::<String>(
&mut config,
"schemaExtension.singleLine",
Expand All @@ -533,7 +544,8 @@ pub(crate) fn resolve_config(
});
Some(SingleLine::Never)
}
}),
})
.or(Some(SingleLine::Never)),
selection_set_single_line: get_nullable_value::<String>(
&mut config,
"selectionSet.singleLine",
Expand All @@ -551,7 +563,8 @@ pub(crate) fn resolve_config(
});
Some(SingleLine::Never)
}
}),
})
.or(Some(SingleLine::Never)),
union_member_types_single_line: get_nullable_value::<String>(
&mut config,
"unionMemberTypes.singleLine",
Expand Down

0 comments on commit 3e968c1

Please sign in to comment.