Repository navigation
Releases
v0.4.0
Add two JSON-LD rules, make wrapped suppression comments work, and give SARIF
rules the help text GitHub code scanning requires. Both packages move to 0.4.0
together; the catalogue grows from 203 to 205 rules.
New rules
script/json-ld-author-without-name: an author, creator or publisher given as
a bare@idcredits nobody, because Google reads one page and finds no name
there (#539).script/json-ld-required-properties: a ProfilePage or BreadcrumbList without a
property Google requires is not eligible for its rich result (#540).
Suppression comments
- A
deadhead-disable-next-linecomment wrapped over several lines, as
formatters do with long ones, covers the line after its-->. It used to
target a line inside the comment and suppress nothing (#548).
SARIF
- Every rule carries
help.text: the rule's description, its advice and the
link to its page. GitHub's SARIF reference requires it and code scanning
shows it beside each result (#549).
Rule text
- Nine rules about an HTML attribute that no one element owns are titled as
attribute selectors, such as[dropzone]and[fetchpriority] other than high, low or auto. Ids and URLs are unchanged (#547). - Rules carry an optional
updatedDate, set when their guidance changes; rule
pages, the sitemap and structured data use it instead of git history
(#545).
Bookmarklet and site
- The bookmarklet's rule payload is base85 and leaves out rules a live page
cannot trigger, which frees 1.3 kB of the 64 kB URL cap for new rules
(#550). - Rule pages lead with severity, fix and the exact suppression comment, and
show when the guidance last changed. /install gains a CI recipe (#544). - Seventy-seven rule explanations are rewritten in depth
(#526–#534),
and every topic and impact page opens with an introduction (#522), (#524),
(#527). - The playground keeps pasted HTML when Lint is pressed early, says whether it
checked a page or a fragment and marks a stale report (#543), (#544).
v0.3.1
Fix CLI input handling, suppression comments and byte preservation, and reduce
repeated work in the CLI, browser playground and Vite integration. Both packages
move to 0.3.1 together; the catalogue remains at 203 rules.
CLI
- Reject unsupported stdin options and invalid worker counts. Settle workers
that exit without a report and clean up siblings on failure
(#505). - Validate baseline options and files before
--fixchanges HTML. Reject
malformed baseline entries and counts outside the safe integer range. - Keep JSON and SARIF parseable with fixes and baseline notices by sending
those notices to stderr. Wait for stdout writes, including rule listings,
before exiting. Reject inherited object names as report formats. - Prune ignored directories before traversing them, deduplicate equivalent
input paths, and cap worker counts at available CPUs and selected files. - Report large finding lists without exceeding JavaScript's argument limit.
- Clarify first-run help and installation examples
(#505).
Findings and fixes
- Read suppression directives from actual parsed HTML comments. Comment-like
strings in scripts, styles, RCDATA and attributes cannot suppress findings.
Unknown-rule warnings use line numbers from the source after fixes. - Preserve surviving whitespace and quote style in keyword fixes. Remove a
standalone element's full CRLF line. Decline quoted encoded token values
where a source edit cannot preserve their decoded meaning. - Build bounded finding previews and reuse them across rules reporting the
same element, preserving the existing text and 90-character limit. - Align ESLint text with HTML comment, RCDATA and newline semantics. Preserve
template parents and sibling indices in the live DOM adapter.
Runtime reuse and browser
- Retain at most 128 compiled ESLint rule subsets with least-recently-used
eviction; findings, fixes and one engine pass per file survive eviction. - Reuse analysis for unchanged Vite HTML. Bound cached prepared reports to
512 URL paths and 4 MiB of retained text, without retaining response bodies. - Reuse the playground's original analysis in its fix loop, and the corpus
runner's initial findings when measuring fixed HTML. - Remove unused analysis/single-file/baseline helpers and internal exports.
Simplify finding ordering and per-port child caches, and generate both
registries in one pass without parsing the generated JSON again. - Generate a browser registry with the same logic and engine metadata, omitting
documentation fields that the playground never reads. - Include backtick dynamic imports when measuring the playground's JavaScript
payload; the size check previously omitted its generated registry chunk. - Bound decoded link data to 10 MiB and encoded handoffs to one million
characters. Cancel oversized decompression; local file input has no link limit. - Report clipboard, file-read and malformed-link failures in the playground.
Clear incoming page fragments before decoding them. - Add worker-count benchmark options, reject failed cold-start measurements,
and clean up synthetic benchmark files.
v0.3.0
The new deadhead/vite export adds dev-time checking to Vite 8 projects. Both
published packages move to 0.3.0 together. The rule set is unchanged: 203 rules,
with the same findings and autofixes as 0.2.1.
Vite integration
- Add
deadhead()fromdeadhead/viteto your Vite config to report findings,
advice and rule links in the terminal and DevTools console during development
(#502). - Checks use the CLI parser and inspect completed HTML responses, including SSR
streams served through Vite's middleware stack. Positions refer to the served
HTML. Frameworks with a separate HTML server need the CLI or bookmarklet. - Read rule settings and URL filters from
deadhead.config.tsin Vite's root,
with plugin options overriding the file. Setconsole: falsefor terminal
reports with unchanged response bytes and headers. - The plugin checks UTF-8 HTML up to 2 MiB, preserves streamed writes and
backpressure, and skips compressed or partial responses. It respects
Cache-Control: no-transformand uses Vite's configured CSP nonce for console
output. A blocked console script leaves the terminal report available. - Vite is an optional peer; CLI users do not install it. The plugin ships
JavaScript and TypeScript declarations. Builds keep using
"postbuild": "deadhead dist"after the framework writes its final output.
Bookmarklet
- The full report button re-reads the page's HTML in your browser and opens it on
/try, with positions, advice and fixed HTML. If CSP blocks the re-read, it
sends the rendered DOM. The HTML travels in the URL fragment;/tryclears it
after reading it (#501).
v0.2.1
Fixes from the first corpus run. Deadhead 0.2.0 linted the home pages of the Tranco top
10,000, and a review of 20 findings per rule found autofixes that changed what a page does,
false positives, and doc claims their sources contradict. No new rules; 203 in all.
Changes that alter fixes
- A
<meta>carrying more than one ofname,property,http-equiv,itempropand
charsetis still reported but never deleted whole: the fix would take a live key with
the dead one (#488). link/href-missingkeeps a link with anidor adata-*attribute, a hook a script
fills (#488).attr/input-number-maxlength-sizefixes only wheremaxlengthis absent: scripts read it
throughmaxLength(#488).link/canonical-qualifiershas no autofix: stripping the qualifier makes Google use the
canonical (#488).meta/http-equiv-x-dns-prefetch-controlfixes what it reports: no engine acts ononor
an empty value (#492).meta/apple-mobile-web-app-status-bar-stylefixes every value it reports (#490).
Changes that alter findings
meta/viewport-valueaccepts WebKit'sshrink-to-fitand numericuser-scalable; on
the top 10,000 it falls from 10.9% of sites to 1.1% (#490).meta/apple-mobile-web-app-status-bar-styleleavesblackandblack-translucent
alone: since iOS 26 every Home Screen site opens as a web app (#490).meta/referrer-valueacceptsorigin-when-crossorigin, a legacy keyword in HTML's
table (#490).attr/script-asyncandattr/script-deferleave an empty script with nosrc, a
placeholder HTML prepares again oncesrcarrives (#488).attr/a-coords-shapereportsshapeonly with an image-map value (#488).meta/http-equiv-x-dns-prefetch-controlreportson, an empty value and a missing
content; any other value is an opt-out in Firefox (#492).head/viewport-missingleaves a desktop page that names its separate mobile URL with
<link rel="alternate" media>(#492).script/json-ld-unescaped-ltreports a literal</, not any<(#494).- Narrowed to what each rule claims (#490, #492):
attr/fetchpriority-value
(empty value),head/base-position(nohref),document/main-multiple(under a
hiddenancestor or a closed dialog),script/json-ld-syntax(empty block),
link/preload-as-missing(preload stylesheet),link/preload-font-crossorigin-missing
(stylesheet URLs),meta/og-name-attribute(withproperty),
meta/http-equiv-unregistered-pragmas(onion-location,x-pjax-version),
attr/list-presentational(ol[type]),link/canonical-relativeand
link/hreflang-relative(URLs trimmed as the URL parser trims them; any scheme is
absolute),head/metadata-position(template contents),meta/charset-value(empty
value) andmeta/title(Swiftype's tags).
ESLint plugin
- Decodes character references in attribute values and text, as the CLI and the
bookmarklet do:type="text/javascript"now reports in ESLint too (#486).
Rule text
v0.2.0
13 new rules, 203 in all, and 12 revised ones. The first release published from CI
with npm provenance, staged and approved with 2FA.
Changes that alter findings or fixes
meta/og-required-propertiesreports a page with Open Graph tags and noog:image,
and nothing else; severity drops from harmful to unnecessary
(#426).meta/twitter-card-nameskeepstwitter:card, attribution and layout tags, and
fixes the tags that repeat Open Graph or that nothing reads
(#423).meta/robots-valueacceptsnoaiandnoimageaioutside Google's own names
(#428).meta/http-equiv-unregistered-pragmasleavesorigin-trialto the new
meta/http-equiv-origin-trial, which reports a tag once its tokens expire
(#464).meta/msapplication-namesnow fixes every name: Internet Explorer is gone
(#470).meta/apple-mobile-web-app-capablefixes the tag when the page links a
manifest and no startup image, and nowhere else (#471).- The bookmarklet panel links to each rule's fix instead of printing it, which frees 11 kB
of thejavascript:URL under the 64 kB cap (#458).
New rules
meta/tdm-reservation-value(#430)attr/img-fetchpriority-loading(#444)attr/fetchpriority-value(#446)script/speculationrules-syntax(#448)link/preload-fetch-crossorigin-missing(#450)script/importmap-syntax(#452)attr/importance(#455)head/base-position(#457)head/description-multiple(#460)link/hreflang-relative(#462)meta/http-equiv-origin-trial(#464)link/modulepreload-as-value(#466)head/metadata-position(#473)
Rule text
element/fencedframemilestones move to M156 and M157 (#432)attr/browsingtopics-attributionsrcandattr/iframe-allow-privacy-sandboxstate the removal stage (#434)meta/apple-mobile-web-app-capablestates the iOS 26 web app default (#436)meta/revisit-afternameslastmodas what Google and Bing read (#438)meta/og-relative-urlcites Meta's absolute-URL rule (#440)meta/http-equiv-x-dns-prefetch-controlcites whatwg/html#9473 (#442)
v0.1.0
First release. ESM only, Node 24.8 or newer; the ESLint plugin needs ESLint 10.
- 190 rules across attr/, document/, element/, head/, link/, meta/ and
script/. Every finding links to its page on https://deadhead.cevdet.ch. - CLI: stylish, JSON and SARIF output; --fix; baselines; suppression comments;
--jobs for large trees; stdin. Layout partials and components are linted
for what they hold. - ESLint plugin: one rule per deadhead rule,
recommendedandallconfigs,
autofix where the rule has one. - Types generated from the source for
defineConfigand the plugin. - Published by hand from the tested tarballs. Every later release comes from
CI with npm provenance, staged and approved with 2FA.