Skip to content
This repository has been archived by the owner on Aug 31, 2023. It is now read-only.

Add notes about language-specific config #3730

Merged
merged 3 commits into from
Nov 15, 2022
Merged
Show file tree
Hide file tree
Changes from 2 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
4 changes: 4 additions & 0 deletions website/src/pages/configuration.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,8 @@ Example:

## `formatter`

These options apply to all languages. There are additional language-specific formatting options below, as well.
IanVS marked this conversation as resolved.
Show resolved Hide resolved

### `formatter.enabled`

Enables Rome's formatter
Expand Down Expand Up @@ -143,6 +145,8 @@ How many characters can be written on a single line.

## `javascript`

These options apply only to JavaScript (and TypeScript) files.

### `javascript.formatter.quoteStyle`

The type of quote used when representing string literals. It can be `single` or `double`.
Expand Down
2 changes: 2 additions & 0 deletions website/src/pages/formatter/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ The language agnostic options supported by Rome are:
- tab width (default: `2`): The number of spaces per indention level
- line width (default: `80`): The column width at which Rome wraps code

Other formatting options are available for specific languages as well. See the [configuration](/configuration) options for details.

## Use the formatter with the CLI

You can start by running the CLI with the `--help` flag:
Expand Down