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

wpt-tests-exist lint rule

Enable this lint rule to get a warning if any of the tests mentioned in data-tests does not exist in the WPT repository.

For example:

<p id="a" data-tests="test.html,404.html"></p> <!-- 404.html does not exist)

You'll receive a warning listing all the missing tests.

Example of usage

var respecConfig = {
  testSuiteURI: "https://github.com/web-platform-tests/wpt/tree/master/payment-request/",
  // alternatively:
  // testSuiteURI: "https://wpt.fyi/payment-request/",
  lint: {
    "wpt-tests-exist": 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