Skip to content

[bug] [@eslint-react/naming-convention/use-state] fails with multiple words #960

Closed
@mayatron

Description

@mayatron

Describe the bug

Starting with version 1.29.0, the following case is considered invalid:

const [myCount, setMyCount] = useState(0);

Whereas the example shown below in the docs works:

const [count, setCount] = useState(0);

Reproduction

See above.

Expected behavior

This case should be considered valid.

Platform and versions

@eslint-react/eslint-plugin: 1.29.0

Stack trace


Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Status: ReleasedThe issue has been releasedType: BugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions