From f5c83a76e3baf7de31d98ae6af9d4933e0d514a7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E3=83=9E=E3=83=AB=E3=82=B3=E3=83=A1?= Date: Fri, 7 Jun 2024 11:52:46 +0900 Subject: [PATCH] docs: add `javascript.formatter.trailingCommas` --- src/content/docs/reference/configuration.mdx | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/content/docs/reference/configuration.mdx b/src/content/docs/reference/configuration.mdx index 10f99f9f3..e9c27bad5 100644 --- a/src/content/docs/reference/configuration.mdx +++ b/src/content/docs/reference/configuration.mdx @@ -527,6 +527,15 @@ Print trailing commas wherever possible in multi-line comma-separated syntactic > Default: `"all"` +### `javascript.formatter.trailingCommas` + +Print trailing commas wherever possible in multi-line comma-separated syntactic structures. Possible values: +- `"all"`, the trailing comma is always added; +- `"es5"`, the trailing comma is added only in places where it's supported by older version of JavaScript; +- `"none"`, trailing commas are never added. + +> Default: `"all"` + ### `javascript.formatter.semicolons` It configures where the formatter prints semicolons: