Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
danielrentz opened this issue Feb 28, 2025 · 0 comments
Labels
Status: Released The issue has been released Type: Bug Something isn't working

Comments

@danielrentz
Copy link
Contributor

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

@Rel1cx Rel1cx added the Type: Bug Something isn't working label Feb 28, 2025
Rel1cx added a commit that referenced this issue Feb 28, 2025

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
@Rel1cx Rel1cx closed this as completed in 3ba947a Feb 28, 2025
@Rel1cx Rel1cx added the Status: Released The issue has been released label Mar 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Released The issue has been released Type: Bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants