Skip to content

React rule: story-only-component #161

@ColumbusLabs

Description

@ColumbusLabs

Goal

Components exported only from .stories.tsx never used in app code.

Difficulty

Medium

Area

Detector (react)

Suggested approach

  • Cross-reference imports from non-story files.

Acceptance criteria

  • Story and app-shared component does not fire.

Suggested test command

npm test -- tests/detectors/

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: detectorDetector/rule behaviordifficulty: mediumModerate task with multiple files or design choicesenhancementNew feature or requestgood-first-ruleStarter work for adding or improving a DebtLens rulehelp wantedExtra attention is needed

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions