STYLE002: unused-style-class
Style class is never referenced
| Code | STYLE002 |
| Name | unused-style-class |
| Category | Styles (STYLE) |
| Default severity | info |
| Enabled by default | no |
| Fix available | no |
| ign-lint equivalent | none |
What it does
Section titled “What it does”Reports style classes that no literal classes list and no style-list
map transform output in the project (or in a project inheriting from it)
names.
Why is this bad?
Section titled “Why is this bad?”Unused style classes are dead styling that still has to be maintained and makes the class list harder to navigate.
This rule is not in the default set: class names are often built at run
time (expression bindings such as 'state-' + {view.params.state},
scripts), which no static analysis sees. Classes of inheritable projects
are not reported.
Example
Section titled “Example”A style class Legacy/Header that no component uses. Delete it, or use
it where it is meant to be used.
Generated from the rule metadata by iglint generate-docs; iglint rule STYLE002 prints the same page in the terminal. Source: docs/rules/STYLE002.md.