Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion programs/prettier.nix
Original file line number Diff line number Diff line change
Expand Up @@ -333,7 +333,14 @@ in

options.programs.prettier = {
# Represents the prettierrc.json config schema
settings = settingsSchema;
settings = mkOption {
default = { };
type = types.submodule {
# Allow freeform values to allow for plugin settings.
freeformType = configFormat.type;
options = settingsSchema;
};
};
};

config = lib.mkIf cfg.enable {
Expand Down