Skip to content

Rules ​

πŸ“¦ Config presets enabled in.
βœ… recommended preset.
πŸ”’ strict preset.
πŸ›‘οΈ security preset.
β™Ώ a11y preset.
πŸ”§ Automatically fixable by the --fix CLI option.
πŸ’‘ Manually fixable by editor suggestions.

NameDescriptionβœ…πŸ”’πŸ›‘οΈβ™ΏπŸ”§πŸ’‘
no-empty-titleDisallow empty title elementβœ…πŸ”’β™Ώ
no-empty-descDisallow empty desc elementβœ…πŸ”’β™Ώ
no-empty-textDisallow empty text elementβœ…πŸ”’β™Ώ
no-empty-containerDisallow empty container elementπŸ”’
no-empty-groupsDisallow empty g elementπŸ”’
no-base64-data-urlDisallow base64 data URLs in attributesβœ…
no-inline-stylesDisallow inline style attributeπŸ”’
no-event-handlersDisallow inline event handlersπŸ”’πŸ›‘οΈ
no-script-tagsDisallow script elementsβœ…πŸ”’πŸ›‘οΈ
require-viewboxRequire viewBox on svg elementsβœ…πŸ”’
no-deprecatedDisallow deprecated elementsβœ…πŸ”’
no-doctypeDisallow doctypeβœ…πŸ”’βœ…
no-duplicate-idsDisallow duplicate id attributesβœ…πŸ”’
no-elementsDisallow elements by name
no-commentsDisallow comments in SVG files
no-invalid-roleDisallow invalid value of role attributeβœ…πŸ”’β™Ώ
no-discouraged-roleDisallow discouraged role value in SVGβ™Ώ
no-unsafe-hrefDisallow unsafe href and xlink:href URLsπŸ›‘οΈ
require-accessible-nameRequire an accessible name for key SVGsβ™Ώ
no-unknown-elementsDisallow non-standard SVG elementsβœ…πŸ”’
prefer-current-colorPrefer currentColor over hardcoded colors