chore: use taplo to reformat toml files

This commit is contained in:
Boshen 2023-04-22 15:55:55 +08:00
parent b95eeec47d
commit 080baaa2db
No known key found for this signature in database
GPG key ID: 9C7A8C8AB22BEBD1
23 changed files with 285 additions and 274 deletions

6
.taplo.toml Normal file
View file

@ -0,0 +1,6 @@
include = ["Cargo.toml", "crates/**/*.toml", "tasks/**/*.toml"]
[formatting]
align_entries = true
column_width = 120
reorder_keys = true

View file

@ -8,7 +8,7 @@ extend-exclude = [
"tasks/coverage/babel", "tasks/coverage/babel",
"tasks/coverage/typescript", "tasks/coverage/typescript",
"**/*.snap", "**/*.snap",
"pnpm-lock.yaml" "pnpm-lock.yaml",
] ]
[default.extend-words] [default.extend-words]

View file

@ -5,7 +5,12 @@ _default:
# Initialize the project by installing all the necessary tools # Initialize the project by installing all the necessary tools
init: init:
cargo binstall cargo-nextest cargo-watch cargo-insta typos-cli wasm-pack -y cargo binstall cargo-nextest cargo-watch cargo-insta typos-cli taplo-cli wasm-pack -y
# Run all fmt for all files
fmt:
cargo fmt
taplo format
# Run all the tests # Run all the tests
test: test: