prettier: also format json
This commit is contained in:
@@ -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"
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
{
|
||||
"publickey": "age1ez6xlcxl5k2uekcjvsu5wjca29f0j3lml0kq8fnvnkugvnj4pyjsyzuc93",
|
||||
"type": "age"
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user