prettier: also format json

This commit is contained in:
Jörg Thalheim
2024-12-10 13:45:46 +01:00
committed by Mic92
parent 96773c3ccc
commit 012969cb68
4 changed files with 10 additions and 5 deletions

View File

@@ -13,6 +13,8 @@
treefmt.programs.deadnix.enable = true; treefmt.programs.deadnix.enable = true;
treefmt.settings.global.excludes = [ treefmt.settings.global.excludes = [
"*.png" "*.png"
"*.svg"
"package-lock.json"
"*.jpeg" "*.jpeg"
"*.gitignore" "*.gitignore"
".vscode/*" ".vscode/*"
@@ -24,6 +26,10 @@
"*.age" "*.age"
"*.list" "*.list"
"*.desktop" "*.desktop"
# ignore symlink
"docs/site/manual/contribute.md"
"*_test_cert"
"*_test_key"
]; ];
treefmt.programs.prettier = { treefmt.programs.prettier = {
enable = true; enable = true;
@@ -32,6 +38,7 @@
"*.css" "*.css"
"*.html" "*.html"
"*.js" "*.js"
"*.json"
"*.json5" "*.json5"
"*.jsx" "*.jsx"
"*.mdx" "*.mdx"

View File

@@ -10,9 +10,7 @@
}, },
"options": { "options": {
"nixos": { "nixos": {
"expr": "(let pkgs = import <nixpkgs> { }; in (pkgs.lib.evalModules { modules "expr": "(let pkgs = import <nixpkgs> { }; in (pkgs.lib.evalModules { modules = (import <nixpkgs/nixos/modules/module-list.nix>) ++ [ ({...}: { nixpkgs.hostPlatform = builtins.currentSystem;} ) ] ; })).options"
= (import <nixpkgs/nixos/modules/module-list.nix>) ++ [ ({...}: {
nixpkgs.hostPlatform = builtins.currentSystem;} ) ] ; })).options"
}, },
"home-manager": { "home-manager": {
"expr": "(builtins.getFlake \"github:nix-community/home-manager\").homeConfigurations.<name>.options" "expr": "(builtins.getFlake \"github:nix-community/home-manager\").homeConfigurations.<name>.options"