feat: add biome linter and formatter (#1527)
relevant links:
-
https://github.com/biomejs/biome/blob/main/.github/workflows/release_cli.yml#L124
-
https://github.com/NixOS/nixpkgs/blob/nixos-unstable/pkgs/development/tools/biome/default.nix
- Someone suggested using the `musl` build:
https://github.com/biomejs/biome-vscode/issues/127#issuecomment-1937838154
~~current error:~~
```sh
error: builder for '/nix/store/00vyjj92bs2ld7xh3pyd425bk6iz8pa3-biome-1.6.0.drv' failed with exit code 101;
last 10 log lines:
> = note: /nix/store/wnsxnkv86ax8f7r2r0qb25bcymg7n9s8-binutils-2.40/bin/ld: /nix/store/q8mq1m8n7yq1nq5zq78lqps0pw2x4w44-libgit2-1.7.2-lib/lib/libgit2.so: undefined reference to `__isoc23_strtoul@GLIBC_2.38'
> /nix/store/wnsxnkv86ax8f7r2r0qb25bcymg7n9s8-binutils-2.40/bin/ld: /nix/store/q8mq1m8n7yq1nq5zq78lqps0pw2x4w44-libgit2-1.7.2-lib/lib/libgit2.so: undefined reference to `__isoc23_strtol@GLIBC_2.38'
> collect2: error: ld returned 1 exit status
>
> = note: some `extern` functions couldn't be found; some native libraries may need to be installed or have their path specified
> = note: use the `-l` flag to specify native libraries to link
> = note: use the `cargo:rustc-link-lib` directive to specify the native libraries to link with Cargo (see https://doc.rust-lang.org/cargo/reference/build-scripts.html#rustc-link-lib)
>
> error: could not compile `xtask_codegen` (bin "xtask_codegen") due to 1 previous error
> warning: build failed, waiting for other jobs to finish...
```
Best I got to is installing and 'compiling' then:
```sh
biome --version
```
```sh
biome: /nix/store/33f14951fx4i5s49f07pn40070xwpkhb-glibc-2.37-8/lib/libc.so.6: version `GLIBC_2.38' not found (required by /nix/store/hr97rbiw87wl5ya46p3h5p1s5rx712bv-gcc-13.2.0-lib/lib/libstdc++.so.6)
``` B
ben committed
aef83928466930069efe1ca362d868eb739c6350
Committed by GitHub <noreply@github.com>
on 3/13/2024, 5:59:47 PM