lint ignore - speced/respec GitHub Wiki

lint-ignore

The lint-ignore class suppresses specific linting warnings on individual elements without disabling the entire rule globally.

Suppress unused definition warning

When no-unused-dfns is enabled, suppress for one definition:

<dfn class="lint-ignore">internal helper concept</dfn>

Suppress informative-dfn warning

When informative-dfn is enabled, suppress for one link:

<a class="lint-ignore">informative concept</a>

Notes

  • lint-ignore is element-level — it only suppresses the warning on that specific element, not all occurrences
  • Use sparingly — it's better to fix the underlying issue than to suppress it
  • Compare with data-lint-ignore="rule-name" (attribute form) for suppressing specific rules on tables and other elements
⚠️ **GitHub.com Fallback** ⚠️