yeonjuan / html-eslint

ESLint plugin for linting HTML
https://html-eslint.org
MIT License
161 stars 28 forks source link

lowercase rule should be able to ignore specific attributes #177

Closed ChristopherBull closed 9 months ago

ChristopherBull commented 9 months ago

The lowercase rule enforces all tags and attributes to be lowercase. However, some attributes are meant to be case-sensitive (or camel-cased).

For example, the viewBox SVG attribute should be ignored by this rule by default--it should not be lowercase.

This could be achieved similarly to: https://htmlhint.com/docs/user-guide/rules/attr-lowercase

yeonjuan commented 9 months ago

Hi @ChristopherBull Thank you for reporting the issue. This is definitely a bug and should be fixed.