Skip to content
Sid Vishnoi edited this page Jun 17, 2020 · 10 revisions

local-refs-exist

Enable this lint rule to get a warning if there are some href's that link to nonexistent id's in a spec.

For example:

<section id="foo"><!-- content --></section>
<a href="#bar">baz</a> <!-- #bar doesn't exist in document -->

You'll receive a warning pointing you to the links that are broken.

Example of usage

var respecConfig = {
  lint: {
    "local-refs-exist": true,
  },
}

Example Warning

example warning for local-refs-exist

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