Skip to content

[bug] [@eslint-react/prefer-read-only-props] false positive using React types #962

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 Mar 3, 2025 · 0 comments
Labels
Status: Released The issue has been released Type: Bug Something isn't working

Comments

@danielrentz
Copy link
Contributor

danielrentz commented Mar 3, 2025

Describe the bug

Rule @eslint-react/prefer-read-only-props triggers when using Readonly<React.HTMLAttributes<T>>

Reproduction

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

npm run lint

Expected behavior

No type errors

Platform and versions

plugin 1.30.0

Stack trace


Additional context

No response

@Rel1cx Rel1cx added the Type: Bug Something isn't working label Mar 3, 2025
Rel1cx added a commit that referenced this issue Mar 22, 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 873816a Mar 22, 2025
@Rel1cx Rel1cx added the Status: Released The issue has been released label Mar 22, 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