-
-
Notifications
You must be signed in to change notification settings - Fork 101
Closed
Description
Metadata
- Operating system: Ubuntu
- Ruby version: latest
- Node version: latest
@prettier/plugin-ruby
orprettier
gem version: 2.0.0 and 2.5.1- Options:
rubyArrayLiteral
-true
rubyHashLabel
-true
rubyModifier
-true
rubySingleQuote
-true
rubyToProc
-false
trailingComma
-"none"
Input
HAML
= f.input :roles, as: :check_boxes,
collection: Role.global_roles,
label_method: lambda { |role| I18n.t(role.name, scope: 'rolify.role.roles') },
value_method: :name,
checked: f.object.roles_name
Current output
= f.input :roles, as: :check_boxes, collection: Role.global_roles, label_method: lambda { |role| I18n.t(role.name, scope: 'rolify.role.roles') }, value_method: :name, checked: f.object.roles_name
The code above looks for me not really legible, as there is much too much code in one line.
Expected output
It would be great, if HAML/ruby code would be formatted in a way, taking into account the print-width
= f.input :roles, as: :check_boxes,
collection: Role.global_roles,
label_method: lambda { |role| I18n.t(role.name, scope: 'rolify.role.roles') },
value_method: :name,
checked: f.object.roles_name
coderberry, phacks, carakan and Petercopter
Metadata
Metadata
Assignees
Labels
No labels