Skip to content

Commit

Permalink
docs: document fmt config
Browse files Browse the repository at this point in the history
  • Loading branch information
onbjerg committed Jul 14, 2022
1 parent f322b2c commit 9b9bd26
Showing 1 changed file with 29 additions and 1 deletion.
30 changes: 29 additions & 1 deletion src/reference/config.md
Original file line number Diff line number Diff line change
Expand Up @@ -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}"
```
```

#### 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.

0 comments on commit 9b9bd26

Please sign in to comment.