id = "dprint" name = "dprint" homepage = "https://dprint.dev" description = "A pluggable and configurable code formatting platform. One fast, secure tool for every language in your repo." executables = ["dprint"] [dotfiles] # https://dprint.dev/global-config/ — `dprint init --global` "creates a # dprint.jsonc file in your system's configuration directory. The default # location is: Linux/macOS: ~/.config/dprint/dprint.jsonc (or # $XDG_CONFIG_HOME/dprint/dprint.jsonc). Note: On macOS, it will use the config # file in $HOME/Library/Application Support/dprint if that folder exists. # Windows: %APPDATA%\dprint\dprint.jsonc". The default and the Windows location # are one place under two names — [configHome], the XDG one on macOS too — and # the Application Support directory is the macOS special case beside it. paths = [ "[configHome]/dprint/dprint.jsonc", "~/Library/Application Support/dprint/dprint.jsonc", ] # The plugin cache: get_cache_dir_internal() in # crates/dprint/src/environment/real_environment.rs resolves to # dirs::cache_dir()/dprint/cache, i.e. [cacheHome]/dprint. Downloaded Wasm # plugins, refetchable. exclude = ["[cacheHome]/dprint/"] # Formatting settings and plugin URLs; dprint authenticates to nothing. secret = [] # Read once per `dprint fmt`/`dprint check` run. side_effect = false # No machine_lines: the global config holds formatting preferences and pinned # plugin URLs, which are exactly what a user wants on every machine. [commands] format = 1 label = "dprint" description = "Format or check source files with dprint. Plugin management and config subcommands are left out." quality = "ai-draft" base = "fig:dprint" parser = { end_of_options = "--", interleave = "permute", long_equals = true, short_attached = true, short_bundles = false } [[commands.source]] id = "fig" kind = "completion" url = "https://github.com/withfig/autocomplete/blob/master/src/dprint.ts" license = "MIT" [[commands.subcommand]] path = ["fmt"] label = "Format files" description = "Format files in place. Leaves out --stdin." [[commands.subcommand.source]] id = "fig" kind = "completion" url = "https://github.com/withfig/autocomplete/blob/master/src/dprint.ts" license = "MIT" [[commands.subcommand.field]] id = "files" label = "File patterns" description = "Quote patterns; they override the config file." type = "string" position = 0 multiple = true sources = ["fig"] [[commands.subcommand.field]] id = "diff" label = "Show diff" type = "boolean" option = ["--diff"] sources = ["fig"] [[commands.subcommand.field]] id = "excludes" label = "Exclude patterns" type = "string" option = ["--excludes"] multiple = true sources = ["fig"] [[commands.subcommand.field]] id = "allow_node_modules" label = "Allow node_modules" type = "boolean" option = ["--allow-node-modules"] sources = ["fig"] [[commands.subcommand.task]] id = "format" label = "Format" fields = ["files", "diff", "excludes"] [[commands.subcommand.group]] id = "basic" label = "Basic" fields = ["files", "diff"] [[commands.subcommand.group]] id = "advanced" label = "Advanced" fields = ["allow_node_modules", "excludes"] [[commands.subcommand]] path = ["check"] label = "Check formatting" description = "List files that are not formatted." [[commands.subcommand.source]] id = "fig" kind = "completion" url = "https://github.com/withfig/autocomplete/blob/master/src/dprint.ts" license = "MIT" [[commands.subcommand.field]] id = "files" label = "File patterns" type = "string" position = 0 multiple = true sources = ["fig"] [[commands.subcommand.field]] id = "excludes" label = "Exclude patterns" type = "string" option = ["--excludes"] multiple = true sources = ["fig"] [[commands.subcommand.field]] id = "allow_node_modules" label = "Allow node_modules" type = "boolean" option = ["--allow-node-modules"] sources = ["fig"] [[commands.subcommand.task]] id = "check" label = "Check" fields = ["files", "excludes"] [[commands.subcommand.group]] id = "basic" label = "Basic" fields = ["files", "excludes"] [[commands.subcommand.group]] id = "advanced" label = "Advanced" fields = ["allow_node_modules"] [[commands.subcommand]] path = ["init"] label = "Create config" description = "Create a dprint config in the current directory." [[commands.subcommand.source]] id = "fig" kind = "completion" url = "https://github.com/withfig/autocomplete/blob/master/src/dprint.ts" license = "MIT" [[commands.subcommand.group]] id = "basic" label = "Basic" fields = []