DSC-R02/norms/rules/design-components/DSC-R02.md
Este texto aún no está traducido. Debajo está el original en inglés.
Every used component exists
MUSTbloqueacomprobaciónactiva
Each id in the uses of a component header is a component with a header or a page.
Por qué: A component built from one that does not exist cannot be rendered or swapped; the catalog would show a hole, and a misspelled id is found only on screen.
Enforcer: checks/uses-exist.ts
Each id in the uses of a component header is a component that has a header in a library, or a page in /design/components.
What counts as a violation. A header lists an id that no header and no page has.
Why. A component built from one that does not exist cannot be rendered or swapped; the catalog would show a hole, and a misspelled id is found only on screen.
Run. shtuk run design-components uses-exist. A violation is a line, exit code 1.
How to fix. Fix the id in the uses of the header, or add the missing component.
El paquete Design components coloca esta página en
/norms/rules/design-components/DSC-R02.md.Texto fuente