diff --git a/src/reference/config.md b/src/reference/config.md index f24ff355e..8f85c65e7 100644 --- a/src/reference/config.md +++ b/src/reference/config.md @@ -716,4 +716,32 @@ The following example defines an endpoint named `optimism` and an endpoint named [rpc_endpoints] optimism = "https://optimism.alchemyapi.io/v2/..." mainnet = "${RPC_MAINNET}" -``` \ No newline at end of file +``` + +#### Formatter + +Configuration related to the behavior of the Forge formatter. Each of these keys live under the `[fmt]` section. + +##### `line_length` + +- Type: number +- Default: 80 +- Environment: `FOUNDRY_FMT_LINE_LENGTH` or `DAPP_FMT_LINE_LENGTH` + +Specifies the maximum line length where the formatter will try to wrap the line. + +##### `tab_width` + +- Type: number +- Default: 4 +- Environment: `FOUNDRY_FMT_TAB_WIDTH` or `DAPP_FMT_TAB_WIDTH` + +Number of spaces per indentation level. + +##### `bracket_spacing` + +- Type: bool +- Default: true +- Environment: `FOUNDRY_FMT_BRACKET_SPACING` or `DAPP_FMT_BRACKET_SPACING` + +Whether or not to print spaces between brackets. \ No newline at end of file