Skip to content

Conversation

prateekbisht23
Copy link

@prateekbisht23 prateekbisht23 commented Aug 22, 2025

By default, ESLint only lints .js files. This PR updates the README(s) to note
that users need to pass --ext .js,.jsx (or .tsx for TypeScript) when running
ESLint so that rules like react/jsx-filename-extension are applied correctly.

Also updated package.json scripts to demonstrate this usage.

Fixes #1402

@prateekbisht23 prateekbisht23 changed the title docs: add note about ESLint --ext for .jsx files docs: add note about ESLint --ext for .jsx files (see eslint/eslint#1402) Aug 22, 2025
- Removed unused "lint:js" script and merged it into "lint"
- Updated ESLint command to include .js, .jsx, and .mjs extensions
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Documentation: react/jsx-filename-extension can break checks without --ext arguments
2 participants