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
I noticed inconsistency when my colleagues, who are used to Haml, transision to Slim:
Notice the space before the = sign:
/ Gooddiv = 'This is what the official slim documentation uses consistently'/ Baddiv= 'This works, but it should probably not be encouraged.'/ Not affectedahref="This is still fine though, because it is an attribute"
I also noticed that my syntax highlighter (TextMate) doesn't properly recognize the non-spacing version:
Would this cop be something worth implementing?
(I tried twice to bugfix some rubocop internals and failed miserably somewhere in the AST 😂, so I cannot promise a PR, but I will try if you think this cop makes sense :)
The text was updated successfully, but these errors were encountered:
mmzoo
changed the title
Spacing convention between element name and equal sign (div= versus div =)
Spacing convention between element name and equal sign (div= versus div =)
Jul 16, 2018
I noticed inconsistency when my colleagues, who are used to Haml, transision to Slim:
Notice the space before the
=
sign:I also noticed that my syntax highlighter (TextMate) doesn't properly recognize the non-spacing version:
Would this cop be something worth implementing?
(I tried twice to bugfix some rubocop internals and failed miserably somewhere in the AST 😂, so I cannot promise a PR, but I will try if you think this cop makes sense :)
The text was updated successfully, but these errors were encountered: