We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
updated:
Coming from multiple discussions including:
--offset-ternary-expressions
I would like to offer some more flexible ternary conditional expression formatting options for JavaScript, JSX, and other JavaScript-based languages.
I am thinking this should be configured through some options such as:
--ternary-expression-formatting
default
balanced
?
"
verbose
--jsx-ternary-expression-formatting
--no-ternary-inner-indent
--inner-ternary-indenting
For upcoming 0.19.0 release (issue #493), I am thinking to just support options like these:
references:
The text was updated successfully, but these errors were encountered:
brodycj
No branches or pull requests
updated:
Coming from multiple discussions including:
--offset-ternary-expressions
I would like to offer some more flexible ternary conditional expression formatting options for JavaScript, JSX, and other JavaScript-based languages.
I am thinking this should be configured through some options such as:
--ternary-expression-formatting
- choice of:default
- format like Prettierbalanced
- same indenting for both the expression after?
and the expression after"
verbose
- use the existing "JSX style" for all ternaries, as was proposed in Use JSX style for all nested ternaries prettier/prettier#9552--jsx-ternary-expression-formatting
- choice of:default
- "verbose" formatting like the upstream Prettier codebalanced
- similar to "balanced" formatting above(I think we need something more flexible than a boolean config flag for the ternary indenting behavior)--no-ternary-inner-indent
- workaround for [prettierx] ternary formatting with objects & tabs needs improvement in upstream Prettier #552 (...)--inner-ternary-indenting
- choice option with more flexible workaround for [prettierx] ternary formatting with objects & tabs needs improvement in upstream Prettier #552 ... should be able to add more choices in the future as needed - choice of:default
- same as upstream PrettierFor upcoming 0.19.0 release (issue #493), I am thinking to just support options like these:
--ternary-expression-formatting
- choice ofdefault
|balanced
--no-ternary-inner-indent
- workaround for [prettierx] ternary formatting with objects & tabs needs improvement in upstream Prettier #552 (issue with nested ternary formatting with objects & tabs)--inner-ternary-indenting
- choice ofdefault
| ???references:
The text was updated successfully, but these errors were encountered: