mirror of
https://github.com/oxc-project/oxc.git
synced 2026-09-14 19:36:11 +08:00
1db440d67a
Standardizes the Rustfmt config filename and options, then applies cargo fmt.
21 lines
647 B
TOML
21 lines
647 B
TOML
style_edition = "2024"
|
|
# Make Rust more readable given most people have wide screens nowadays.
|
|
# This is also the setting used by [rustc](https://github.com/rust-lang/rust/blob/master/rustfmt.toml)
|
|
use_small_heuristics = "Max"
|
|
|
|
# Use field initialize shorthand if possible
|
|
use_field_init_shorthand = true
|
|
|
|
reorder_modules = true
|
|
merge_derives = true
|
|
remove_nested_parens = true
|
|
|
|
# All unstable features that we wish for
|
|
# unstable_features = true
|
|
# Provide a cleaner impl order
|
|
# reorder_impl_items = true
|
|
# Provide a cleaner import sort order
|
|
# group_imports = "StdExternalCrate"
|
|
# Group "use" statements by crate
|
|
# imports_granularity = "Crate"
|