You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+1
Original file line number
Diff line number
Diff line change
@@ -658,6 +658,7 @@ To register plugins, define a file somewhere in your load path named `syntax_tre
658
658
659
659
*`plugin/single_quotes` - This will change all of your string literals to use single quotes instead of the default double quotes.
660
660
*`plugin/trailing_comma` - This will put trailing commas into multiline array literals, hash literals, and method calls that can support trailing commas.
661
+
*`plugin/disable_ternary` - This will prevent the automatic conversion of `if ... else` to ternary expressions.
661
662
662
663
If you're using Syntax Tree as a library, you can require those files directly or manually pass those options to the formatter initializer through the `SyntaxTree::Formatter::Options` class.
0 commit comments