Re:GitHub Super Linter: one linter to rule them all
by earthboundkid on Friday June 19, 2020 @12:14AM
(#23570906)
If you really want 5 lines, add a dummy // in there and will be forced to use 5 instead of 1. Dirty hack, but it works.
[ Parent
| on HN ]
Re:GitHub Super Linter: one linter to rule them all
by vages on Friday June 19, 2020 @02:22AM
(#23571572)
That, or a prettier-ignore comment above the JSX tag. I find your solution more elegant, though.
My two cents: Write the comment's purpose inside it. "// Comment inserted to force prettier line break until more attributes are added"
Re:GitHub Super Linter: one linter to rule them all
by waheoo on Saturday June 20, 2020 @11:11PM
(#23589435)
Im talking about adding an attribute in the next 5 minutes, no, im not going to add a comment, or an ignore line while im editing a component. Those are really awful work arounds to a man made problem.