# flakelight -- Framework for simplifying flake setup # Copyright (C) 2023 Archit Gupta # SPDX-License-Identifier: MIT { lib, ... }: let inherit (lib) mkEnableOption; in { options.flakelight.builtinFormatters = mkEnableOption "default formatters" // { default = true; }; config = { devShell.packages = pkgs: [ pkgs.nixpkgs-fmt pkgs.nodePackages.prettier ]; formatters = { "*.nix" = "nixpkgs-fmt"; "*.md" = "prettier --write"; "*.json" = "prettier --write"; "*.yml" = "prettier --write"; }; }; }