mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-07-06 17:13:24 -05:00
ci/treefmt: add biome for .js files
This excludes doc and pkgs folders, because there are way too many files to fix at the moment.
This commit is contained in:
parent
23b82b3228
commit
9d5164bdb8
1 changed files with 16 additions and 0 deletions
|
|
@ -42,6 +42,22 @@ let
|
|||
|
||||
programs.actionlint.enable = true;
|
||||
|
||||
programs.biome = {
|
||||
enable = true;
|
||||
settings.formatter = {
|
||||
useEditorconfig = true;
|
||||
};
|
||||
settings.javascript.formatter = {
|
||||
quoteStyle = "single";
|
||||
semicolons = "asNeeded";
|
||||
};
|
||||
settings.json.formatter.enabled = false;
|
||||
};
|
||||
settings.formatter.biome.excludes = [
|
||||
"doc/*"
|
||||
"pkgs/*"
|
||||
];
|
||||
|
||||
programs.keep-sorted.enable = true;
|
||||
|
||||
# This uses nixfmt underneath,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue