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

View File

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

View File

@@ -8,7 +8,7 @@
"esModuleInterop": true,
"jsx": "preserve",
"jsxImportSource": "solid-js",
"types": [ "vite-plugin-solid-svg/types-component-solid", "vite/client" ],
"types": ["vite-plugin-solid-svg/types-component-solid", "vite/client"],
"noEmit": true,
"resolveJsonModule": true,
"allowJs": true,

View File

@@ -1,4 +1,4 @@
{
"publickey": "age1ez6xlcxl5k2uekcjvsu5wjca29f0j3lml0kq8fnvnkugvnj4pyjsyzuc93",
"type": "age"
}
}