-
-
Notifications
You must be signed in to change notification settings - Fork 504
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(config): default value for indent_width #3096
Conversation
CodSpeed Performance ReportMerging #3096 will degrade performances by 7.14%Comparing Summary
Benchmarks breakdown
|
crates/biome_cli/tests/snapshots/main_commands_rage/with_formatter_configuration.snap
Outdated
Show resolved
Hide resolved
1647647
to
8ae7a3d
Compare
crates/biome_cli/tests/snapshots/main_commands_rage/with_formatter_configuration.snap
Outdated
Show resolved
Hide resolved
8ae7a3d
to
493f2c1
Compare
493f2c1
to
e8354ed
Compare
fn default_css() { | ||
let css_configuration = CssFormatter::default(); | ||
|
||
assert_eq!(css_configuration.indent_width, IndentWidth::default()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The default value should be None
; otherwise, the CSS formatter will not inherit indent_width
from the global formatter settings when css.formatter.indent_width
is unset.
Related: #3103
Summary
The issue is that we had
IndentWidth
, but we weren't using it at all 😆Now we use it, and I took the chance to add a max value that we cant' exceed. It behaves the same way
LineWidth
does.Closes #3067
Test Plan
I added a new test case