Ramonda

RMD043 — A <meta> with nothing to identify it

// Skipped. Nothing identifies it, so an update could only append a second copy.
// The cast is what it takes to write this at all — see below.
skipped = this.use(Head, () => ({ meta: [{ content: "A framework." } as never] }));

// Written, and matched by its `name` when it changes.
described = this.use(Head, () => ({ meta: [{ name: "description", content: "A framework." }] }));

Head matches the tags it has already written so that an update replaces them rather than appending, and a <meta> is matched by name, property or http-equiv. One with none of the three cannot be found again, so it would be added on every update — it is skipped instead.

MetaTag requires one of the three, so TypeScript refuses the tag that would trip this. It fires for a build with no types, or through a cast.

Reported once per set of fields the tag has, rather than once per tag: a content that carries the page description is a different string on every navigation, and one report for each of them would say nothing the first did not.

Next