Skip to content

[bug] ["@eslint-react/naming-convention/use-state"] works in jsx files only #953

Closed
@danielrentz

Description

@danielrentz

Describe the bug

Rule "@eslint-react/naming-convention/use-state" triggers in JSX/TSX files, but not in JS/TS files (hook implementations).

Reproduction

https://stackblitz.com/edit/vitejs-vite-cu2wkgxw

  • run npm run lint
  • triggers in App.tsx
  • should trigger in useTest.ts too

Expected behavior

Should trigger in useTest.ts too.

Platform and versions

"@eslint-react/eslint-plugin": "^1.28.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