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.
| Name | Description | β | π | π‘οΈ | βΏ | π§ | π‘ |
|---|---|---|---|---|---|---|---|
| no-empty-title | Disallow empty title element | β | π | βΏ | |||
| no-empty-desc | Disallow empty desc element | β | π | βΏ | |||
| no-empty-text | Disallow empty text element | β | π | βΏ | |||
| no-empty-container | Disallow empty container element | π | |||||
| no-empty-groups | Disallow empty g element | π | |||||
| no-base64-data-url | Disallow base64 data URLs in attributes | β | |||||
| no-inline-styles | Disallow inline style attribute | π | |||||
| no-event-handlers | Disallow inline event handlers | π | π‘οΈ | ||||
| no-script-tags | Disallow script elements | β | π | π‘οΈ | |||
| require-viewbox | Require viewBox on svg elements | β | π | ||||
| no-deprecated | Disallow deprecated elements | β | π | ||||
| no-doctype | Disallow doctype | β | π | β | |||
| no-duplicate-ids | Disallow duplicate id attributes | β | π | ||||
| no-elements | Disallow elements by name | ||||||
| no-comments | Disallow comments in SVG files | ||||||
| no-invalid-role | Disallow invalid value of role attribute | β | π | βΏ | |||
| no-discouraged-role | Disallow discouraged role value in SVG | βΏ | |||||
| no-unsafe-href | Disallow unsafe href and xlink:href URLs | π‘οΈ | |||||
| require-accessible-name | Require an accessible name for key SVGs | βΏ | |||||
| no-unknown-elements | Disallow non-standard SVG elements | β | π | ||||
| prefer-current-color | Prefer currentColor over hardcoded colors |