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

Commit

Permalink
Add notes about language-specific config (#3730)
Browse files Browse the repository at this point in the history
Co-authored-by: Micha Reiser <micha@reiser.io>
  • Loading branch information
IanVS and MichaReiser authored Nov 15, 2022
1 parent 7fa14f0 commit d1b57ed
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
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.

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

0 comments on commit d1b57ed

Please sign in to comment.