integrate prettier into treefmt

This commit is contained in:
Jörg Thalheim
2023-08-24 14:09:19 +02:00
parent 13a6386004
commit dbc0ae08c0
11 changed files with 4763 additions and 24 deletions

View File

@@ -1,23 +1,6 @@
# cLan - awesome UI
## Prettier
To use prettier and the plugins using vscode/vscodium the `prettier.config.js` needs to be at the root level of the editor's file explorer
`cd clan-core/pkgs/ui && code .`
When inspecting `OUTPUT > Prettier` the config should've been loaded:
```sh
["INFO" - 1:47:43 PM] Formatting completed in 48ms.
["INFO" - 1:48:07 PM] Using config file at '.../clan-core/pkgs/ui/prettier.config.cjs'
```
If you have enabled `formatOnSave` the tailwind classes should get sorted into the officially recommended order.
`prettier -w ./src/ --config prettier.config.cjs`
## Commands
## Updating dependencies
After changing dependencies with
@@ -27,10 +10,8 @@ Update floco dependencies:
`nix run github:aakropotkin/floco -- translate -pt -o ./nix/pdefs.nix`
The prettier tailwind class sorting is not yet working properly with our devShell integration.
To sort classnames manually:
`cd /clan-core/pkgs/ui/`