From f96fd4cafb0b595930b6061d5858081219988d1a Mon Sep 17 00:00:00 2001 From: "Christopher J. Brody" Date: Mon, 28 Jun 2021 12:10:15 -0400 Subject: [PATCH] prettierx docs: reference brodybits/prettierx issue 552 in ternary formatting with objects & tabs ref: - https://github.com/brodybits/prettierx/issues/552 --- README.md | 2 +- docs/options.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 60d216cd89..b31e10bd1d 100644 --- a/README.md +++ b/README.md @@ -20,7 +20,7 @@ prettierx ## Additional prettierX options - `--align-object-properties` (`alignObjectProperties: true`): Align colons in multiline object literals (not applied with any of the JSON parsers). -- `--offset-ternary-expressions` (`offsetTernaryExpressions: true`): Indent and align ternary expression branches more consistently with "Standard JS" (similar to the corresponding eslint option). +- `--offset-ternary-expressions` (`offsetTernaryExpressions: true`): Indent and align ternary expression branches more consistently with "Standard JS" (similar to the corresponding eslint option). NOT recommended together with `--use-tabs` due to KNOWN ISSUE: [`brodybits/prettierx#552`](https://github.com/brodybits/prettierx/issues/552) - `--space-before-function-paren` (`spaceBeforeFunctionParen: true`): Put a space before function parenthesis in all declarations (similar to the corresponding eslint option). (Default is to put a space before function parenthesis for untyped anonymous functions only.) - `--generator-star-spacing` (`generatorStarSpacing: true`): Put spaces around the star (`*`) in generator functions (before and after - similar to the corresponding eslint option). (Default is after only.) - `--yield-star-spacing` (`yieldStarSpacing: true`): Put spaces around the star (`*`) in `yield*` expressions (before and after - similar to the corresponding eslint option). (Default is after only.) diff --git a/docs/options.md b/docs/options.md index 098654d8d9..53db3b5fe3 100644 --- a/docs/options.md +++ b/docs/options.md @@ -298,7 +298,7 @@ Put spaces between computed property brackets (similar to the corresponding esli ## Offset ternary expressions -Indent and align ternary expression branches more consistently with "Standard JS" (similar to the corresponding eslint option). +Indent and align ternary expression branches more consistently with "Standard JS" (similar to the corresponding eslint option). NOT recommended together with `--use-tabs` due to KNOWN ISSUE: [`brodybits/prettierx#552`](https://github.com/brodybits/prettierx/issues/552) | Default | CLI Override | API Override | | ------- | ------------------------------ | ---------------------------------- |