dfh
26dbc30f4c
If prettier is called via treefmt-nix it does not source .editorconfig files per default, hence the integration is enabled explicitly.
24 lines
437 B
Nix
24 lines
437 B
Nix
_: {
|
|
# Used to find the project root
|
|
projectRootFile = "flake.nix";
|
|
|
|
# Files not to format.
|
|
settings.global.excludes = [
|
|
".editorconfig"
|
|
"LICENSE"
|
|
];
|
|
|
|
# nix
|
|
programs.nixfmt.enable = true; # As of 2024-07-30 this is nixfmt-rfc-style.
|
|
programs.statix.enable = true;
|
|
programs.deadnix.enable = true;
|
|
|
|
# markdown
|
|
programs.prettier = {
|
|
enable = true;
|
|
settings = {
|
|
editorconfig = true;
|
|
};
|
|
};
|
|
}
|