Esc

COMARK3101 · warning

comark/fields/missing-name

Give every ::field a name

A field's name is the prop, option, or parameter it describes, shown in code at the top of the field. A field with no name shows its type and description with nothing to say what they belong to.

Incorrect

::field{type="number" default="3"}
How many ducks to feed before the deploy.
::
md
lint-comark example.mdexample.md:1:1 comark/fields/missing-name::field 1 (a number) has no name, so readers can't tell what it describes.Write ::field{name="..."}.✖ 1 problem

Correct

::field{name="ducks" type="number" default="3"}
How many ducks to feed before the deploy.
::
md
lint-comark example.md✔ No problems