Skip to content

Add note about not needing jsx-no-undef with typescript-eslint #3941

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

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

karlhorky
Copy link
Contributor

@karlhorky karlhorky commented Aug 3, 2025

Hi @ljharb, hope everything is going well! 👋

Quick PR to add an additional case of when to not use react/jsx-no-undef - the @typescript-eslint/parser parser allows for usage of ESLint's built-in no-undef without react/jsx-no-undef:

Screenshot 2025-08-03 at 13 56 31

This applies to:

  1. .tsx files (as demonstrated in the typescript-eslint Playground link)
  2. .jsx or .js files - also without "allowJs": true or "checkJs": true in tsconfig.json.

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

Successfully merging this pull request may close these issues.

1 participant