Enforcement coverage
Auto-generated by yarn cli enforcement. Do not edit manually.
Every Semetrika rule sits in one of two states:
- Enforced - an automated check exists. Listed in the first table
below, grouped by rule;
yarn cli <rule>runs every check of that rule. Violations always emit a[Rule N.N]tag in front of the diagnostic. - Review only - no check in this CLI. Listed in the second table.
Some are covered by an external linter instead: Stylelint enforces
21.2 (
selector-class-pattern), 23.9 (unit-disallowed-list), and the 23.1 / 23.3 / 23.26 naming shapes (custom-property-pattern), and twig-cs-fixer enforces 32.21-32.23. The rest are caught at code-review time and are candidates for future codification.
Bidirectional linking: every rule file in docs/content/handbook/rules/ ends with an
Enforced by note that points back at this table.
Enforced rules
| Rule | Sub-rule | Detector | What it checks |
|---|---|---|---|
| 11 | 11.3 | findUnpairedMirrorSelectors | In a mirrored component, every selector list naming the element form also names the mirror class with the same qualifiers, and the other way round, so both forms share every declaration. |
| 11 | 11.14 | findRawComponentTags | No raw <button>, <select>, <textarea>, <blockquote>, <progress>, or <fieldset> in a story render - include the matching component twig instead. |
| 21 | 21.10 | findInvertedPaletteLayers | src/layers.css declares emphasis before intent and both before fill, so an explicit status outranks the emphasis default and a fill can still clear the surface either painted. |
| 21 | 21.15 | findUnlayeredTokenBlocks | Every :root / :root[data-color-scheme] block in a token file (src/variables.css, src/options.css, and every *.variables.css sidecar) is wrapped in @layer tokens. |
| 21 | 21.16 | findUnlayeredRules | Every rule in a shipped stylesheet sits inside a @layer block; @font-face, @property, @keyframes and layer statements stay at file scope. An unlayered rule outranks every layer, so an unlayered .flex shows an element .hidden hides. |
| 22 | 22.1 | vocab | docs/content/capability-vocabulary.md is byte-identical to the auto-generated form (capabilities + custom values + utilities). |
| 22 | 22.2 | findClassesWithoutSpec | Every CSS class scanned from src/foundation/ + src/utilities/ is declared as an enum-prop value in a utility / foundation spec.js. |
| 22 | 22.16 | findValuesWithoutCss | Every value a utility / foundation spec.js declares as a class word has a selector carrying that word in that utility's own {id}.css. The reverse of 22.2, and the only check that reaches a utility's standalone classes. |
| 22 | 22.13 | findForbiddenTierValues | Bare .primary / .secondary / .tertiary value classes are forbidden anywhere under src/. Component-prefixed child classes (.mobilenav-primary) remain legal. |
| 22 | 22.15 | findUnbackedCapabilityValues | Every value declared on a canonical capability in spec/spec.js is backed by a class selector in shipped CSS under src/. The only check entered from the capability registry rather than from a component spec. |
| 23 | 23.25 | findTierVocabViolations | Foundational color tokens (--text-color-*, --border-color-*, --background-color-*) use only the subtle / neutral / accent tier vocabulary; legacy --surface-*, --*-muted-color, and bare --text-color / --border-color names are forbidden. |
| 23 | 23.18 | lint | Foundation prefixes (alphabetical) before component prefixes (alphabetical); own-component decls before sub-component groups. |
| 23 | 23.4 | findLiteralColorViolations | No token file holds a bare color literal - every value references a primitive or a semantic token. The palette (--color-{family}-{step}) is exempt, having nothing to reference. |
| 23 | 23.7 | findTierReferenceViolations | A capability rule names its component token in the primary position and a foundation token in the fallback. A foundation token or primitive in the primary position leaves tier 3 with no name to override. |
| 23 | 23.5 | findTierReferenceViolations | A component sidecar or rules file references tier 2 at the furthest - a primitive there hides the decision from the semantic layer; utility rules files and the foundation are outside the check. |
| 23 | 23.26 | findUnderscoreCustomProperties | No custom property under src/ uses the --_{shortname} underscore-prefix form, in a declaration or a var() read. An underscore name states no target, so nothing records which component owns it. |
| 23 | 23.8 | findDeviceBreakpointTokens | No custom property under src/ carries a mobile / tablet / desktop segment, in a declaration or a var() read. A device word names a class of hardware while the query it feeds names a width. |
| 23 | 23.28 | findFocusSlotViolations | A component's focus tokens name one of the canonical concerns - the -focus-ring-* slots the ring reads, plus the box-shadow, background-color and border-color a focused control restyles its own surface with. |
| 23 | 23.27 | findAxisMismatchedSpacing | A declaration that sets a length on one axis reads that axis's spacing scale, and a shorthand covering both axes spells them as a pair. The two scales hold the same value at every step, so a mismatch renders identically and nothing but the name catches it. |
| 23 | 23.29 | findFoundationTokenWrites | A component or utility stylesheet declares a foundation token - one src/variables.css or src/options.css declares - only when it is a color token inside @layer surface, where a component that paints its own surface keeps the typography placed on it legible. |
| 23 | 23.3 | findPrimitiveVarReferences | No declaration in the primitive block of src/variables.css reads var(); a token that reads another is a semantic decision and sits in the semantic block. |
| 23 | 23.1 | findChildTokenNearMisses | A sidecar token's child segment is never the singular or plural of a child class the stylesheet ships (--card-action-* beside .card-actions). |
| 24 | 24.11 | findColorSchemeViolations | Both :root[data-color-scheme="dark"] and :root[data-color-scheme="light"] set color-scheme: <value>. |
| 24 | 24.12 | findColorSchemeViolations | The :root[data-color-scheme="dark"] block carries only genuine differences: no entry identical to its :root value, and no orphan without a :root counterpart. |
| 24 | 24.13 | findColorSchemeViolations | Pure-color values end in -color, -color-subtle, -color-neutral, -color-accent, -color-danger, -color-info, -color-success, -color-warning, -background-color, -border-color, or -shadow-color. |
| 24 | 24.19 | findIndistinctIntents | Within one component, no two intents resolve to the same color for the same concern while the other intents differ there. A value shared by every intent is a common default, not a collision. |
| 24 | 24.20 | findIndistinctEmphasis | Within one component, no two emphasis values resolve to the same color on every concern the pair declares. Compared per pair rather than per concern, because a quieter rung routinely shares its text color and changes only the surface. |
| 25 | 25.2 | findRedundantReducedMotionBlocks | No @media (prefers-reduced-motion: reduce) block in a shipped stylesheet only clears transitions the --option-animations multiplier already zeroes; a block that swaps an animation for a static state stays, and so does a clear in a sheet with a transition the multiplier does not scale. |
| 31 | 31.3 | findInvalidBooleanPropNames | Boolean prop names start with is_, has_, or use_. |
| 31 | 31.12 | findForbiddenTitleLevel | The stale title_level prop is forbidden in *.twig, *.spec.js, and *.stories.js; render the title via title_tag. |
| 31 | 31.13 | findNonCanonicalPropNames | A Component declares no non-canonical name for a concept the rule names: no aria_* prop or slot, is_labeled, id_prefix, variant, image slot, or enum prop named mode or direction. |
| 31 | 31.14 | findUnprefixedItemFlags | Every *.twig under src/ reads a boolean item key through its prefix, in dot or quoted bracket form (item.is_current, never item.current). |
| 32 | 32.1 | findHeaderDrift | Docblock header regenerated byte-idempotently from {name}.spec.js. |
| 32 | 32.20 | findFunctionFormIncludes | Every {name}.twig includes through the {% include %} tag; the {{ include() }} function form is rejected. |
| 41 | 41.4 | findInlineStyleWrites | Component JS assigns no style.<property> and calls style.setProperty() only with a custom property; attributes and classes carry state, and a custom property carries a measured value CSS owns. |
| 41 | 41.5 | findInvalidRegistration | Component JS file calls _register exactly once, installs no DOMContentLoaded listener, no childList MutationObserver on document.body, passes locally-defined init / destroy function references to _register, and does NOT assign window.Semetrika.<name> directly (the preamble does that). |
| 42 | 42.1 | checkTestSiblings | Every covered JS source file has a sibling *.test.js. |
| 42 | 42.13 | checkTestSiblings | Lint blocks CI when a covered file is added without a sibling test. |
| 43 | 43.1 | findInvalidEventNames | Event names follow <component>-<action>. |
| 43 | 43.2 | findInvalidEventNames | Event names match /^[a-z][a-z0-9]*-[a-z][a-z0-9-]*$/. |
| 43 | 43.10 | findMissingDebugEventsArg | Stories calling watchEvents() declare a debug_events arg; utility stories default it to true (a false default needs a justifying comment). |
| 43 | 43.13 | findMissingDebugEventsArg | Lint blocks CI when debug_events is missing, or when a utility story defaults it to false without a justifying comment. |
| 43 | 43.11 | findDynamicEventDispatches | Events are dispatched directly via new CustomEvent('<literal>', …). Wrapper functions that accept a dynamic event-name parameter (e.g. emit(target, type, detail)) are forbidden. |
| 43 | 43.15 | findImplicitEventFlags | Every dispatch passes bubbles and cancelable explicitly. |
| 43 | 43.16 | findEmptyEventDetail | detail is omitted when the event carries no payload; detail: {} and detail: null are violations. |
| 43 | 43.17 | findDispatchReturnUsed | Cancellation is read as event.defaultPrevented; dispatchEvent's boolean return is not consumed. |
| 43 | 43.18 | findBannedDetailKeys | detail.trigger names the originating element and detail.reason the string discriminator; detail.source is banned. |
| 43 | 43.19 | findGuardedDispatch | A component or utility module carries no typeof CustomEvent environment probe. |
| 44 | 44.1 | findUnspecifiedEmittedEvents | Every event passed to new CustomEvent(...) matches the derived wire of an emit facet on a behavioral capability. |
| 44 | 44.2 | findUnimplementedEmittedEvents | Every emit facet's derived wire is dispatched in JS as a literal new CustomEvent(...) call. |
| 44 | 44.3 | findUnspecifiedListenedEvents | Every Rule 43-shaped event passed to addEventListener(name, …) matches the derived wire of a listen facet. |
| 44 | 44.4 | findUnimplementedListenedEvents | Every listen facet's derived wire is bound via addEventListener in JS. |
| 44 | 44.5 | findUnspecifiedAttributes | Every data-… attribute read, written, or selected in JS (excluding -init markers) matches the derived wire of a hook or state facet. |
| 44 | 44.6 | findUnimplementedAttributes | Every hook / state facet whose derived wire is a data-… attribute is referenced in JS. |
| 44 | 44.9 | findRedundantWireOverrides | No facet authors a wire equal to the value the Derive conventions already yield; an override names only a borrowed, foundation or markup-contract wire. |
| 45 | 45.1 | findInvalidModuleWrapper | The file is one arrow IIFE (() => { … })(); whose first statement is 'use strict';, matching src/boot.js. |
| 45 | 45.2 | findInvalidLifecycleNames | The two functions passed to _register are named exactly init and destroy. |
| 45 | 45.3 | findInvalidLifecycleNames | Per-element work runs through named initElement / init{Noun} functions, paired symmetrically with their destroy halves. |
| 45 | 45.4 | findInvalidHandlerNames | Listeners are named handle{Target}{Event}; the on{Action} form is forbidden for declarations and bindings alike. |
| 45 | 45.5 | findInvalidRegistryShape | A WeakMap named registry / {noun}Registry is the init guard; WeakSet and dataset.*Init markers are forbidden. |
| 45 | 45.6 | findInvalidRegistryShape | A data-*-init marker appears only where a CSS selector reads it (a _register destroySelector, or an observer attributeFilter). |
| 45 | 45.7 | findManualListenerTeardown | Every addEventListener passes a signal (or once) option, and removeEventListener is not used. |
| 45 | 45.5 | findNonRecordRegistryEntries | A registry entry is a record object, or the true a module with nothing to tear down may store; no other value. |
| 45 | 45.12 | findReimplementedHelpers | A behavior window.Semetrika publishes is called, not re-implemented, and an element id never comes from Math.random(). |
| 45 | 45.13 | findAdHocGlobalLifecycle | Document-level listeners run through window.Semetrika._globals, not a hand-rolled install / uninstall pair. |
| 45 | 45.8 | findDiscardedTimers | A setTimeout / setInterval handle is kept, never discarded at statement level, so the matching destroy can clear it; a zero-delay deferral holds no resource and is exempt. |
| 46 | 46.1 | findEndRelativeIndexReads | No receiver[receiver.length - n] or receiver.slice(-1)[0] in a JavaScript file the repository owns - an array or string takes .at(-n), an element's last child takes lastElementChild, and a live-collection receiver says so with a // live-collection: marker. |
| 51 | 51.8 | findJsRuleReferencesInComments | Comments describe the concrete reason, not a rule citation. |
| 51 | 51.9 | findJsRuleReferencesInComments | Lint catches Rule N / Rule N.M patterns under src/ and .storybook/. |
| 51 | 51.11 | findDeadGuidancePaths | Every backticked repository path a guidance file cites, outside fenced code and blockquoted examples, exists on disk. |
| 51 | 51.12 | findDeadRuleReferences | Every Rule NN.M citation and [NN.M](…) link in a guidance file names a sub-rule its rule document states. |
| 52 | 52.1 | checkStoryFolderFile | Title first segment maps to its folder under src/. |
| 52 | 52.2 | checkStoryFolderFile | Canonical group <-> folder mapping enforced. |
| 52 | 52.3 | checkStoryFolderFile | Form controls/ override maps to src/components/ per the mapping table. |
| 52 | 52.4 | checkStoryFolderFile | Root-level titles (no /) are matched against the ROOT_TITLES allow-list (empty today). |
| 53 | 53.1 | loadComponentSpec | Spec file exists and default-exports a CapabilitySpec. |
| 53 | 53.3 | loadComponentSpec | The CapabilitySpec constructor rejects a spec missing name or description; the load fails and lint reports it. |
| 53 | 53.4 | loadComponentSpec | The CapabilitySpec constructor rejects an absent or empty description. |
| 53 | 53.7 | findUnflaggedOutlierEnums | An enum prop whose values include a word no capability declares sets outlier: true. |
| 53 | 53.8 | findSpecViolations | Every declared slot, prop, and visual capability is referenced as a twig variable in the component template. |
| 53 | 53.15 | produceSpecJson | Producer renders deterministically across two consecutive runs. |
| 53 | 53.16 | detectWhitespaceBleed | Example markup has no run of 2+ spaces and no embedded newlines. |
| 53 | 53.17 | findUnimplementedSpecValues | Every spec enum value has a matching .{component}.{value} selector with a non-empty body inside the @layer named after that enum (the capability layer, or {prop.name} for an outlier enum prop). |
| 53 | 53.18 | findUndeclaredComponentClasses | Every class word compounded with .{component} in the component CSS is declared as an enum value in that component spec. |
| 53 | 53.19 | runRule53Values | Per-value sidecar token contract for capabilities with a declared default: canonical --{component}-{variant}-{concern} naming, per-value token existence and usage, no misplaced base read, default mirror, and uniform property-surface coverage. Run via yarn cli 53-19 (part of yarn lint). |
| 53 | 53.19 | findLiteralRepoints | A value rule re-points a base slot to the value's own --{component}-{value}-{concern} token, never to a literal; a slot whose base mirrors another capability's default is exempt. Run via yarn cli 53-19. |
| 53 | 53.20 | produceSpecJson | A template-less spec authors each example's markup; pairing markup with a {name}.twig, or omitting both, is rejected. |
| 53 | 53.21 | findRenderingDeclarationDrift | The Styling declaration agrees with the implementation: a CSS element-form/mirror-class pairing requires the mirrored value (and vice versa), element-form styling with no pairing requires bare (and vice versa), the classed default is declared by omitting the capability, a mirrored template never merges its mirror class onto the root, and the badge tags (the value word on the stories meta, <value>:playground on the Playground story) carry exactly the declared value. |
| 53 | 53.21 | findClassFormOnBare | A component declaring the bare styling value carries no .{name} class compound in its CSS; the element form alone styles it. |
| 53 | 53.22 | findCollidingClassWords | No class word is declared by two of a component's enum surfaces - two visual capabilities, two enum props, or one of each. |
| 53 | 53.23 | loadComponentSpec | The spec factories reject a declaration not written as (identifier, options), an option the factory does not read, and a slot, prop, or facet not built by its factory; the load fails and lint reports it. |
| 53 | 53.24 | loadComponentSpec | The spec factories reject a flag written at its default - required: false, outlier: false, asClass: true, isGlobal: false, or a boolean prop default: false. |
| 53 | 53.25 | loadComponentSpec | Capability.X.use([...]) rejects values listed out of the capability's declared order. |
| 53 | 53.27 | findUndeclaredCrossReferences | A component or utility stylesheet reads another entry's token, re-points one, or styles another entry's class only when that entry is in its dependency closure, so a selective bundle ships everything the stylesheet references. Run via yarn cli 53-27 (part of yarn lint). |
| 53 | 53.28 | findEmptyExampleMarkup | Every example except empty renders markup when the component declares any slot, prop or capability value. |
| 53 | 53.29 | findUndeclaredMarkupClasses | Every class word in rendered example markup is declared by the component, a dependency, a utility or a foundation enum. |
| 53 | 53.30 | findInlineVisualCapabilities | Every visual capability a spec attaches is drawn from the canonical registry in spec/spec.js rather than built in the spec file, and is attached with .use([...]) rather than by bare reference. |
| 54 | 54.1 | findProhibitedWords | No file git tracks or would track contains a word from PROHIBITED_WORDS, matched regardless of case and anywhere in a line, unless the word's allowedIn names the file. |
| 54 | 54.2 | findStaleAllowances | Every allowedIn entry names a file the scan reads, and that file still contains its word. |
| 55 | 55.3 | findPathImportsIntoPackages | No script outside packages/ imports a module inside a package by relative path; it imports the package by name through an entry point its exports map lists. |
| 55 | 55.4 | findImportsLeavingPackage | No script inside packages/{name}/ imports a file outside that directory by relative path; Node built-ins, dependencies and the package's own entry points are imported by name. |
| 55 | 55.6 | findSeamBypasses | Every project-module read inside the CLI goes through loadProjectModule() in packages/cli/src/lib/project.js; no other CLI script imports through pathToFileURL() on its own. |
| 61 | 61.4 | findMissingPlaygroundStory | Component has an export const Playground. |
| 61 | 61.5 | findPlaygroundRenderWithoutArgs | Playground render accepts args and forwards them. |
| 61 | 61.7 | analyzeStoryThemeApply | Renders apply the controls handle from withControls() onto every Twig call. |
| 61 | 61.7 | findShadowedControls | A Playground render does not overwrite a slot or prop whose generated control still stands; a story-owned slot is declared in the storyFor() demo map. |
| 61 | 61.8 | findMirrorStories | No Classless / Mirror story exports. |
| 61 | 61.9 | findObjectControls | No control: object on non-passthrough props. |
| 61 | 61.10 | findStepLessPlays | A play that drives more than one user action wraps each action in a named step(); only the userEvent calls the play makes directly count. |
| 61 | 61.12 | findDesignTokenReadsInChrome | Every chrome stylesheet (the shared stories*.css and each *.stories.css) reads only --story-* variables and never a var(--x, fallback); a demo whose subject the token is opts out between /* lint-chrome-tokens: off <reason> */ and /* lint-chrome-tokens: on */. |
| 61 | 61.13 | findPerComponentChromeViolations | Every .story-* class a per-component *.stories.css names carries its owner's story-{component} prefix unless the shared chrome declares it. |
| 61 | 61.15 | runChromeCheck | Shared chrome classes are listed in src/tools/storybook-chrome/README.md and have a leading purpose comment. |
| 61 | 61.15 | findPerComponentChromeViolations | Per-component chrome classes sit in the README's per-component table by full name (a trailing * names a family), carry a leading purpose comment, and every listed class exists in its owner. |
| 61 | 61.17 | findProsePools | A story-local demoSet() / demoPool() holds structural data; a string of six or more words is prose and comes from sentence(), paragraph() or a demoText entry. |
| 61 | 61.21 | findPlaylessStories | Every component stories file carries at least one play. |
| 61 | 61.23 | findFormControlStateGaps | The plays of a Form controls/ stories file assert the states its spec declares (is_disabled, is_checked, is_invalid); a bound control also tabs into the control and asserts focus. A comment or rendered markup naming a state is not evidence. |
| 61 | 61.27 | findUnprefixedChromeVariables | A per-component chrome stylesheet declares only --story-{component}-* variables, or sets a variable the shared chrome declares. |
| 61 | 61.27 | findUndeclaredChromeReads | Every var(--story-*) read in a chrome stylesheet names a variable the shared chrome or the sheet itself declares. |
| 61 | 61.25 | findLegacyConstrain | No legacy constrain parameter or constrain() helper. |
| 61 | 61.26 | findChromeInRender | No class="story-..." chrome inside a component or pattern render other than the Level 2 content atoms and story-docs; renders return the component directly (canvas chrome belongs on parameters.canvas). |
| 61 | 61.26 | findFrameworkWrappersInRender | No layout-utility class (container, grid, flex, spacing, sizing) on an element a component or pattern render authors; the file-level // lint-story-chrome: off marker opts out. |
| 61 | 61.36 | findSeparatorJoins | A render placing component instances side by side joins them with ''; a join building a class attribute, an id list or an accessible name keeps its space. |
| 61 | 61.31 | findRedundantCenteredLayout | No per-story layout: 'centered' restating the preview-level default; only a centered that overrides an earlier fullscreen / padded is kept. |
| 61 | 61.30 | findThemeStories | No per-story theme arg or theme-named story exports. |
| 61 | 61.32 | findHardcodedOptionControls | Option controls spread optionsControl(options) so the control type follows the summed label width; hardcoded select / radio / inline-radio is forbidden in either the string or object form. |
| 61 | 61.33 | findLiteralDemoContent | Component / pattern stories pass no string literal on a content-bearing key; content is referenced as code from the demo-content.js registries or a story-local demoSet() / demoPool() definition, with // demo-literal: <reason> as the reviewed escape. |
| 61 | 61.35 | findCapabilityLiteralClasses | Stories route capability values through the capability arg (story.values() on the own component, valuesFor() on a composed one), resolved against the component the call targets; a capability value as a string literal in a classes array, a canonical value the target does not declare, and a class word declared by nothing in the system all fail, with // capability-literal: <reason> as the reviewed escape. |
| 61 | 61.34 | findHardcodedPlaygroundValues | A Playground play asserts no toHaveClass word or toHaveAttribute value that spells one of the component's own spec values; every such expectation derives from args. |
| 63 | 63.1 | findCopiedPartials | No story partial repeats the body of an earlier partial in its directory, compared with Twig comments and whitespace dropped - identically, or with every difference replacing the same word with the same other word. The stories render one partial and pass the value they differ in. |
| 63 | 63.1 | findMisnamedPartials | A partial is named {name}.{composition-kebab}.stories.twig after its directory, or {name}.stories.twig while it is the directory's only partial. |
| 63 | 63.1 | findNonSiblingPartialImports | A *.stories.js imports every *.stories.twig partial from its own directory. |
| 63 | 63.1 | findStoriesWithoutPartial | Every pattern stories file imports a partial from its own directory. A pattern is a composition by definition; which utility and layout-component stories are compositions stays a review call. |
| 63 | 63.2 | findDemoContentLookups | A partial calls no function and reads no binding that demo-content.js or demo-content.core.js exports; the stories file looks the content up and passes it in as a slot variable. |
Review-only rules
These rules have no automated check today. CI doesn't catch violations; reviewers do. Each row is a candidate for future codification.
| Rule | Sub-rules | Description |
|---|---|---|
| 11 | 11.1, 11.2, 11.4-11.13 | Markup: Rendering modes |
| 12 | 12.1-12.8 | Markup: Data attributes |
| 13 | 13.1-13.10 | Markup: Accessibility |
| 21 | 21.1-21.9, 21.11-21.14 | CSS: Class structure |
| 22 | 22.3-22.12, 22.14 | CSS: Capability vocabulary (non-enforced sub-rules) |
| 23 | 23.2, 23.6, 23.9-23.17, 23.19-23.24 | CSS: Tokens and options (non-enforced rules - definitions, units, options) |
| 24 | 24.1-24.10, 24.14-24.17 | CSS: State and color scheme (non-pairing rules) |
| 25 | 25.1, 25.3-25.7 | CSS: Animations (non-enforced sub-rules) |
| 31 | 31.1, 31.2, 31.4-31.11, 31.15 | Twig: Component props (non-prefix rules) |
| 32 | 32.2-32.19, 32.21-32.24 | Twig: Code formatting (body) |
| 41 | 41.1-41.3, 41.6-41.9 | JS: Progressive enhancement (non-registration rules) |
| 42 | 42.2-42.12, 42.14, 42.15 | JS: Unit tests (structure, coverage, public API contract) |
| 43 | 43.3-43.9, 43.12, 43.14, 43.20, 43.21 | JS: Custom events (emission, notification / intent split, JSDoc, spec listen references) |
| 44 | 44.7, 44.8 | JS: Spec contract (behavior buckets, factory validation - enforced at CapabilitySpec construction) |
| 45 | 45.9-45.11 | JS: Module and lifecycle shape (scope collection, prerequisite retry, wrapping keyboard navigation) |
| 51 | 51.1-51.7, 51.10 | Project: File structure (non-comment rules) |
| 52 | 52.5, 52.6 | Project: Stories folder alignment (linter implementation, move-together) |
| 53 | 53.2, 53.5, 53.6, 53.9-53.14, 53.26 | Project: Component spec (non-enforced sub-rules) |
| 55 | 55.1, 55.2, 55.5 | Project: Workspace packages (location, naming, manifest, test layout) |
| 61 | 61.1-61.3, 61.6, 61.11, 61.14, 61.16, 61.18-61.20, 61.22, 61.24, 61.28, 61.29 | Storybook (autodocs, interaction tests, demo content, mdx documentation) |
| 62 | 62.1-62.8 | Storybook: Chrome levels |
| 63 | 63.1 (utility and layout-component stories), 63.3-63.5 | Storybook: Composition stories (which utility and layout-component stories render from a partial, render functions, canonical shells, lint exclusion) |
Snapshot
- Enforced: 21 rule(s), 133 sub-rule check(s).
- Review only: 22 rule(s) / sub-rule groups.