diff --git a/website/src/pages/configuration.mdx b/website/src/pages/configuration.mdx index e34394d9f70..02040a3c4bf 100644 --- a/website/src/pages/configuration.mdx +++ b/website/src/pages/configuration.mdx @@ -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 @@ -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`. diff --git a/website/src/pages/formatter/index.mdx b/website/src/pages/formatter/index.mdx index 78c305aad08..dc8ecdbda05 100644 --- a/website/src/pages/formatter/index.mdx +++ b/website/src/pages/formatter/index.mdx @@ -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: