Skip to content
Sid Vishnoi edited this page May 24, 2024 · 2 revisions

no-unused-dfns

Enable this lint rule to get a warning if an internal or un-exported definition is not used, i.e. there is nothing linking to that definition in given spec.

You can fix this by removing the <dfn> element or use another HTML element than <dfn> for that definition, or add class="export" to the definition.

To silence this warning entirely, set lint: { "no-unused-dfns": false } in your respecConfig.

var respecConfig = {
  lint: {
    "no-unused-dfns": true,
  },
};

Guides

Configuration options

W3C Configuration options

Linter rules

Internal properties

Handled by ReSpec for you.

Special <section> IDs

HTML elements

Custom Elements

WebIDL

HTML attributes

CSS Classes

Special properties

Clone this wiki locally