this repo has no description
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

✨ [shared] Replace Prettier with Biome

+36 -23
-1
.prettierrc.toml
··· 1 - trailingComma = "none"
+12
biome.jsonc
··· 1 + { 2 + "$schema": "https://biomejs.dev/schemas/2.0.5/schema.json", 3 + 4 + "formatter": { 5 + "enabled": true, 6 + "indentStyle": "space" 7 + }, 8 + 9 + "linter": { 10 + "enabled": false 11 + } 12 + }
+2 -3
hosts/desktop/home-manager/zen/chrome/userContent.css
··· 29 29 } 30 30 31 31 .search-wrapper .logo-and-wordmark .logo { 32 - background: 33 - url("zen-logo-mocha.svg"), 32 + background: url("zen-logo-mocha.svg"), 34 33 url("https://raw.githubusercontent.com/IAmJafeth/zen-browser/main/themes/Mocha/Blue/zen-logo-mocha.svg") 35 - no-repeat center !important; 34 + no-repeat center !important; 36 35 display: inline-block !important; 37 36 height: 82px !important; 38 37 width: 82px !important;
+2 -3
hosts/thinkpad/home-manager/zen/chrome/userContent.css
··· 29 29 } 30 30 31 31 .search-wrapper .logo-and-wordmark .logo { 32 - background: 33 - url("zen-logo-mocha.svg"), 32 + background: url("zen-logo-mocha.svg"), 34 33 url("https://raw.githubusercontent.com/IAmJafeth/zen-browser/main/themes/Mocha/Blue/zen-logo-mocha.svg") 35 - no-repeat center !important; 34 + no-repeat center !important; 36 35 display: inline-block !important; 37 36 height: 82px !important; 38 37 width: 82px !important;
+12 -4
shared/base/home-manager/development/helix.nix
··· 16 16 helix = 17 17 let 18 18 prettier = format: { 19 - command = "prettier"; 19 + command = lib.getExe pkgs.nodePackages.prettier; 20 20 args = [ 21 21 "--stdin-filepath" 22 22 "file.${format}" 23 + ]; 24 + }; 25 + biome = format: { 26 + command = lib.getExe pkgs.biome; 27 + args = [ 28 + "check" 29 + "--stdin-file-path=file.${format}" 30 + "--write" 23 31 ]; 24 32 }; 25 33 in ··· 60 68 languages.language = [ 61 69 { 62 70 name = "css"; 63 - formatter = prettier "css"; 71 + formatter = biome "css"; 64 72 auto-format = true; 65 73 } 66 74 { ··· 68 76 language-servers = [ 69 77 "vscode-json-language-server" 70 78 ]; 71 - formatter = prettier "json"; 79 + formatter = biome "json"; 72 80 auto-format = true; 73 81 } 74 82 { 75 83 name = "jsonc"; 76 84 language-servers = [ 77 85 ]; 78 - formatter = prettier "jsonc"; 86 + formatter = biome "jsonc"; 79 87 file-types = [ 80 88 "jsonc" 81 89 ];
+1 -1
shared/base/modules/development/formatters.nix
··· 2 2 3 3 { 4 4 environment.systemPackages = with pkgs; [ 5 - nodePackages.prettier 5 + biome # Linter + formatter 6 6 nixfmt-rfc-style 7 7 treefmt 8 8 shfmt
+1
shared/desktop/home-manager/development/zed.nix
··· 12 12 "nix" 13 13 "git-firefly" 14 14 "just" 15 + "biome" 15 16 ]; 16 17 userSettings = 17 18 let
-1
shared/desktop/modules/development/node.nix
··· 5 5 jetbrains.webstorm 6 6 nodejs_22 7 7 pnpm 8 - nodePackages.prettier 9 8 ]; 10 9 }
+1 -1
shell.nix
··· 13 13 # Formatters needed for 'just fmt' 14 14 format = pkgs.mkShell { 15 15 packages = with pkgs; [ 16 - nodePackages.prettier 16 + biome 17 17 nixfmt-rfc-style 18 18 treefmt 19 19 shfmt
+5 -9
treefmt.toml
··· 2 2 command = "nixfmt" 3 3 includes = ["*.nix"] 4 4 5 - [formatter.prettier] 6 - command = "prettier" 7 - includes = ["*.css", "*.json", "*.jsonc", "*.yaml"] 8 - options = ["--write"] 5 + [formatter.biome] 6 + command = "biome" 7 + includes = ["*.css", "*.json", "*.jsonc"] 8 + options = ["check", "--write"] 9 9 10 10 [formatter.shell] 11 11 command = "shfmt" 12 12 includes = ["fmt", "test", "switch"] 13 13 excludes = [] 14 - options = [ 15 - "--indent", "2", 16 - "--simplify", 17 - "--write", 18 - ] 14 + options = ["--indent", "2", "--simplify", "--write"]