From f0641f80cb2751fabfdb8b66e7fb7dbe636f328b Mon Sep 17 00:00:00 2001 From: Ian VanSchooten Date: Mon, 14 Nov 2022 17:58:24 +0000 Subject: [PATCH 1/3] Add notes about language-specific config --- website/src/pages/configuration.mdx | 4 ++++ website/src/pages/formatter/index.mdx | 2 ++ 2 files changed, 6 insertions(+) diff --git a/website/src/pages/configuration.mdx b/website/src/pages/configuration.mdx index e34394d9f70..0746707637b 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, as well. + ### `formatter.enabled` Enables Rome's formatter @@ -143,6 +145,8 @@ How many characters can be written on a single line. ## `javascript` +These are options that 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: From e4493a4acb8faf94d9471aa231d706c393d0fcb4 Mon Sep 17 00:00:00 2001 From: Ian VanSchooten Date: Mon, 14 Nov 2022 18:10:09 +0000 Subject: [PATCH 2/3] Simplify wording slightly --- website/src/pages/configuration.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/website/src/pages/configuration.mdx b/website/src/pages/configuration.mdx index 0746707637b..a228efbec06 100644 --- a/website/src/pages/configuration.mdx +++ b/website/src/pages/configuration.mdx @@ -145,7 +145,7 @@ How many characters can be written on a single line. ## `javascript` -These are options that apply only to JavaScript (and TypeScript) files. +These options apply only to JavaScript (and TypeScript) files. ### `javascript.formatter.quoteStyle` From faa9e08e6d74669e308cbd88b59f3f6f957e7904 Mon Sep 17 00:00:00 2001 From: Ian VanSchooten Date: Tue, 15 Nov 2022 09:24:13 -0500 Subject: [PATCH 3/3] Update website/src/pages/configuration.mdx Co-authored-by: Micha Reiser --- website/src/pages/configuration.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/website/src/pages/configuration.mdx b/website/src/pages/configuration.mdx index a228efbec06..02040a3c4bf 100644 --- a/website/src/pages/configuration.mdx +++ b/website/src/pages/configuration.mdx @@ -103,7 +103,7 @@ Example: ## `formatter` -These options apply to all languages. There are additional language-specific formatting options below, as well. +These options apply to all languages. There are additional language-specific formatting options below. ### `formatter.enabled`