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
{{ message }}
This repository has been archived by the owner on Oct 19, 2020. It is now read-only.
This throws an 'Unexpected token' error at the line containing the ':rules' parameter (oddly enough, the previous line with the ':model' parameter is fine)
I've opened a ticket in the pug-lint repo for this. I believe that it is related directly to pug-lint, since I was receiving these syntax errors when running pug-lint itself.
Omg, I think I found the problem ...
Since we do not use a comma to split the attributes, pug assumes that it's JavaScript syntax
So if we split the attributes with a comma, the syntax error is gone
This issue was prematurely closed—there shouldn't be a need to add commas to each line. The good folks at pug-lint found the underlying issue and the above PR should take care of it. :)
This lints fine:
This throws an 'Unexpected token' error at the line containing the ':rules' parameter (oddly enough, the previous line with the ':model' parameter is fine)
Is this an issue with pug-lint itself, or is it something you can affect with this package?
Cheers!
The text was updated successfully, but these errors were encountered: