mirror of
https://github.com/RGBCube/alejandra
synced 2025-07-31 04:27:45 +00:00
feat: add default config for web version
This commit is contained in:
parent
3e2a855066
commit
cb66042a0c
2 changed files with 1 additions and 2 deletions
|
@ -36,7 +36,6 @@ steps:
|
||||||
if: build.branch != "main"
|
if: build.branch != "main"
|
||||||
artifacts:
|
artifacts:
|
||||||
- formatting-before-vs-after.patch.txt
|
- formatting-before-vs-after.patch.txt
|
||||||
- formatting-after.patch.txt
|
|
||||||
command:
|
command:
|
||||||
- echo +++ Formatting - demo
|
- echo +++ Formatting - demo
|
||||||
- nix run . -- flake.nix
|
- nix run . -- flake.nix
|
||||||
|
|
|
@ -10,5 +10,5 @@ pub fn main() -> Result<(), JsValue> {
|
||||||
|
|
||||||
#[wasm_bindgen]
|
#[wasm_bindgen]
|
||||||
pub fn format(before: String, path: String) -> String {
|
pub fn format(before: String, path: String) -> String {
|
||||||
alejandra::format::in_memory(path, before).1
|
alejandra::format::in_memory(path, before, Default::default()).1
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue