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
This is stemming from an issue running erb-lint on files with AlpineJS syntax (Shopify/erb_lint#221), but it would be nice to add support to configure the parser to use some of the same configuration that better-html supports (in this case the partial_attribute_name_pattern would correct this). For example, being able to set config.partial_attribute_name_pattern = /\A[a-zA-Z0-9\-\:\@\.]+\z/ would allow for the following snippet to parse correctly:
This is stemming from an issue running erb-lint on files with AlpineJS syntax (Shopify/erb_lint#221), but it would be nice to add support to configure the parser to use some of the same configuration that
better-html
supports (in this case thepartial_attribute_name_pattern
would correct this). For example, being able to setconfig.partial_attribute_name_pattern = /\A[a-zA-Z0-9\-\:\@\.]+\z/
would allow for the following snippet to parse correctly:It looks like this might be a bit tricky given the underlying issue comes from the underlying
html_tokenizer
library.The text was updated successfully, but these errors were encountered: