From 9399c1b6562dc73a95f11cd109da0015c9920edb Mon Sep 17 00:00:00 2001 From: James Long Date: Sat, 18 Feb 2017 08:58:34 -0500 Subject: [PATCH] Update README with valid trailingComma options --- README.md | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index fd6c0b4a..ae0745a7 100644 --- a/README.md +++ b/README.md @@ -170,8 +170,11 @@ prettier.format(source, { // If true, will use single instead of double quotes singleQuote: false, - // Controls the printing of trailing commas wherever possible - trailingComma: false, + // Controls the printing of trailing commas wherever possible. Valid options: + // "none" - No trailing commas + // "es5" - Trailing commas where valid in ES5 (objects, arrays, etc) + // "all" - Trailing commas wherever possible (function arguments) + trailingComma: "none", // Controls the printing of spaces inside object literals bracketSpacing: true,