Files
agentic-dev/docs/work/frontend-conformance-v1/01-frontend-rules/_story.md
2026-05-13 07:42:09 +02:00

1.2 KiB

id, epic, title, type, status, feature, depends-on, blocks
id epic title type status feature depends-on blocks
01-frontend-rules frontend-conformance-v1 Three structural frontend conformance ESLint rules technical-story done core-eslint

Goal

Three new rules under the conformance/ plugin namespace: component-must-have-story, component-must-have-test, atomic-tier-import-direction. All ship as WARN initially because no components exist in the repo today.

Done when

  • Three rules registered in @repo/core-eslint/plugin
  • Each has RuleTester tests
  • base.js registers them at WARN severity
  • pnpm lint passes (zero firings expected today; rules activate when first component lands)

In scope

  • Three new rule files in packages/core-eslint/rules/
  • Plugin + base.js wiring
  • Tests via RuleTester

Out of scope

  • Visual regression infrastructure (Playwright screenshots — separate plan)
  • story-must-cover-all-prop-variants advisory rule
  • Detection beyond filesystem siblings (no AST-level component-detection heuristics)

Tasks

  • Epic + story scaffold
  • component-must-have-story rule + tests
  • component-must-have-test rule + tests
  • atomic-tier-import-direction rule + tests
  • Plugin update + base.js wiring
  • Final verification + closeout