Skip to content

docs: add note about ESLint --ext for .jsx files (see eslint/eslint#1402)#3153

Merged
ljharb merged 1 commit intoairbnb:masterfrom
prateekbisht23:docs-eslint-ext
Apr 16, 2026
Merged

docs: add note about ESLint --ext for .jsx files (see eslint/eslint#1402)#3153
ljharb merged 1 commit intoairbnb:masterfrom
prateekbisht23:docs-eslint-ext

Conversation

@prateekbisht23
Copy link
Copy Markdown
Contributor

@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
Comment thread package.json Outdated
Comment thread packages/eslint-config-airbnb-base/README.md Outdated
@prateekbisht23
Copy link
Copy Markdown
Contributor Author

Hey!! Can you approve the pull request or any changes you want!!

@ljharb ljharb force-pushed the docs-eslint-ext branch 2 times, most recently from 611e429 to 0f38f1c Compare April 16, 2026 06:02
@ljharb ljharb merged commit 0f38f1c into airbnb:master Apr 16, 2026
59 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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