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
Which doesn't work because it throws an error: The closing "ul" tag does not match the corresponding opening "if(openCondition)>
Why
This would help increase usage of pretty print as a standard linting option, as projects that are not being able to use it because of some edge cases can disable it in the code itself for that edge case.
Currently I would have to make a custom script around this module and maintain a list of files to be excluded.
Possible Implementation & Open Questions
I propose adding something akin to eslint's disable-line/disable-next-line/disable-file comments that will tell pretty print to not change the corresponding part of the template.
Is this something you're interested in working on?
Yes
The text was updated successfully, but these errors were encountered:
prettyprint
Description
I'm using marko in some weird ways like dynamically opening and closing
ul
tags in a for loop:This is pretty printed to:
Which doesn't work because it throws an error:
The closing "ul" tag does not match the corresponding opening "if(openCondition)>
Why
This would help increase usage of pretty print as a standard linting option, as projects that are not being able to use it because of some edge cases can disable it in the code itself for that edge case.
Currently I would have to make a custom script around this module and maintain a list of files to be excluded.
Possible Implementation & Open Questions
I propose adding something akin to eslint's
disable-line
/disable-next-line
/disable-file
comments that will tell pretty print to not change the corresponding part of the template.Is this something you're interested in working on?
Yes
The text was updated successfully, but these errors were encountered: