nix: bump inputs; add sql-format to formatter
Signed-off-by: NotAShelf <raf@notashelf.dev> Change-Id: I2f5630aa3fd32023cd74eb10fc3ba2e66a6a6964
This commit is contained in:
parent
9dde82d46f
commit
170de90c7e
2 changed files with 17 additions and 10 deletions
|
|
@ -138,6 +138,7 @@
|
|||
pkgs.prettier
|
||||
pkgs.deno
|
||||
pkgs.taplo
|
||||
pkgs.sql-formatter
|
||||
];
|
||||
|
||||
text = ''
|
||||
|
|
@ -148,7 +149,13 @@
|
|||
fd "$@" -t f -e toml -x taplo fmt '{}'
|
||||
|
||||
# Format CSS with Prettier
|
||||
fd "$@" -t f -e css -x prettier --write '{}'
|
||||
fd "$@" -t f -e css -x prettier --write '{}'
|
||||
|
||||
# Format SQL with sql-format
|
||||
fd "$@" -t f -e css -x sql-formatter '{}'
|
||||
|
||||
# Format Markdown with Deno
|
||||
fd "$@" -t f -e md -x deno fmt -q '{}'
|
||||
'';
|
||||
});
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue