We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
do...end
{...}
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
Hello!
What Prettier converts this code
if filtered_codes.any? { |codes| codes.include?(code) || (codes.starts_with?('2') && codes.include?(code[0..-6])) } ...
into this because of the printWidth
printWidth
and for some reason thinks that this block is still a single-line and force {..} instead of do...end.
{..}
Expected Either
if filtered_codes.any? { |codes| short_line }
or
if filtered_codes.any? do |codes| really_long_lineeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee end
Actual
if filtered_codes.any? { |codes| really_long_lineeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee }
Versions npm: prettier (2.8.8) @prettier/plugin-ruby (3.2.2) gems: prettier_print (1.2.1) syntax_tree (6.1.1) syntax_tree-haml (4.0.3) syntax_tree-rbs (1.0.0)
The text was updated successfully, but these errors were encountered:
Dup of ruby-syntax-tree/syntax_tree#122
Sorry, something went wrong.
No branches or pull requests
Hello!
What
Prettier converts this code
into this because of the
printWidth
and for some reason thinks that this block is still a single-line and force
{..}
instead ofdo...end
.Expected
Either
or
Actual
Versions
npm:
prettier (2.8.8)
@prettier/plugin-ruby (3.2.2)
gems:
prettier_print (1.2.1)
syntax_tree (6.1.1)
syntax_tree-haml (4.0.3)
syntax_tree-rbs (1.0.0)
The text was updated successfully, but these errors were encountered: