Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Ze-Zheng Wu <[email protected]>
  • Loading branch information
dyc3 and Sec-ant committed Jun 26, 2024
1 parent 433d9e6 commit 101a3e4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/biome_service/src/settings.rs
Original file line number Diff line number Diff line change
Expand Up @@ -503,7 +503,7 @@ impl From<PartialCssConfiguration> for LanguageSettings<CssLanguage> {
language_setting.parser.css_modules = parser.css_modules;
}
if let Some(formatter) = css.formatter {
// TODO: remove this when css formatting is enabled by defualt
// TODO: change RHS to `formatter.enabled` when css formatting is enabled by default
language_setting.formatter.enabled = Some(formatter.enabled.unwrap_or_default());
language_setting.formatter.indent_width = formatter.indent_width;
language_setting.formatter.indent_style = formatter.indent_style.map(Into::into);
Expand All @@ -512,7 +512,7 @@ impl From<PartialCssConfiguration> for LanguageSettings<CssLanguage> {
language_setting.formatter.quote_style = formatter.quote_style;
}
if let Some(linter) = css.linter {
// TODO: remove this when css linting is enabled by defualt
// TODO: change RHS to `linter.enabled` when css linting is enabled by default
language_setting.linter.enabled = Some(linter.enabled.unwrap_or_default());
}

Expand Down

0 comments on commit 101a3e4

Please sign in to comment.