Skip to content

[Feature]: create eslint rule to enforce style hook API consistency #30385

Open

Description

Library

React Components / v9 (@fluentui/react-components)

Describe the feature that you would like added

Add a new lint rule to enforce the style hook API contract of:

useComponentStyle(state: ComponentState) => ComponentState

That is, that all style hooks take in ComponentState and also return ComponentState.

Have you discussed this feature with our team

@Hotell

Additional context

This is a follow up to #30349

Validations

  • Check that there isn't already an issue that request the same feature to avoid creating a duplicate.

Priority

Normal

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions