ShtukbaseStandard
SBR-R01/norms/rules/shtukbase-ui-react/SBR-R01.md

Этот текст ещё не переведён. Ниже английский оригинал.

The component library is intact

MUSTне пускаетпроверкадействует
The React component library is placed in the project: every file of its manifest is in its place and every relative import (code and CSS) finds its file.
Зачем: The library is copied into the project, and the project may move or delete files. A component with a missing import breaks the whole application at build time, far from the cause; the check names the file at once.
Поля страницы (15)
ruleIdSBR-R01
requirementThe React component library is placed in the project: every file of its manifest is in its place and every relative import (code and CSS) finds its file.
levelMUST
floorfalse
statusactive
spheredesign
appliesTo/design
enforcers.shtukbase/packages/shtukbase-ui-react/checks/library.ts
enforcerKindgate
modeenforce
becauseThe library is copied into the project, and the project may move or delete files. A component with a missing import breaks the whole application at build time, far from the cause; the check names the file at once.
baseline0
reviewBy2027-05-29
packshtukbase-ui-react
railPlace the library with `shtuk run shtukbase-ui-react place`; do not delete library files, move the folder through the `target:` field.

The library is placed by shtuk run shtukbase-ui-react place into the folder target: of the page /design/shtukbase-ui-react.md and leaves a manifest .shtukbase-ui-react.json there.

What counts as a violation. There is no manifest (the library is not placed); a file of the manifest is missing; a relative import in a .ts/.tsx file, or an @import in a .css file, finds no file (for the CSS: the css: field of the page points to the ui.css of the HTML library, which must be installed).

Run. bun .shtukbase/packages/shtukbase-ui-react/checks/library.ts from the project root. A violation is a line per file and exit code 1.

How to fix. shtuk run shtukbase-ui-react place restores missing files (and never overwrites a file the project edited); for the CSS import install shtukbase-ui-html or correct css:.

Пакет The Shtukbase React component library кладёт эту страницу в /norms/rules/shtukbase-ui-react/SBR-R01.md.Исходный текст