integrate prettier into treefmt

This commit is contained in:
Jörg Thalheim
2023-08-24 14:09:19 +02:00
parent 13a6386004
commit dbc0ae08c0
11 changed files with 4763 additions and 24 deletions

View File

@@ -10,6 +10,10 @@
treefmt.flakeCheck = true;
treefmt.flakeFormatter = true;
treefmt.programs.shellcheck.enable = true;
treefmt.programs.prettier.enable = true;
treefmt.programs.prettier.settings.plugins = [
"${self'.packages.prettier-plugin-tailwindcss}/lib/node_modules/prettier-plugin-tailwindcss/dist/index.mjs"
];
treefmt.programs.mypy.enable = true;
treefmt.programs.mypy.directories = {
@@ -29,6 +33,7 @@
"--" # this argument is ignored by bash
];
includes = [ "*.nix" ];
excludes = [ "pkgs/node-packages/*.nix" ];
};
treefmt.settings.formatter.python = {
command = "sh";