+
Skip to content
This repository was 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 all 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.

### `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
点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载