Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions packages/eslint-config-airbnb-base/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,13 +64,13 @@ Our default export contains all of our ESLint rules, including ECMAScript 6+. It

> **Note**: ESLint only lints `.js` files by default.

If your project uses `.jsx` (or `.tsx` with TypeScript), you need to pass extensions to the CLI:
If your project uses `.jsx` or `.tsx` (with a TypeScript parser configured), include those extensions in the CLI command:

```sh
eslint . --ext .js, .jsx, .mjs
eslint . --ext .js,.jsx,.mjs,.tsx
```

Without this, JSX-related rules will not apply to `.jsx` files.
Without the relevant extension, ESLint will not lint those files; `.tsx` also requires a TypeScript parser configured in your project.

### eslint-config-airbnb-base/legacy

Expand Down
6 changes: 3 additions & 3 deletions packages/eslint-config-airbnb/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,13 +59,13 @@ If you don't need React, see [eslint-config-airbnb-base](https://npmjs.com/eslin
2. Add `"extends": "airbnb"` to your `.eslintrc`

> **Note**: ESLint only lints `.js` files by default.
If your project uses `.jsx` (or `.tsx` with TypeScript), you need to pass extensions to the CLI:
If your project uses `.jsx` or `.tsx` (with a TypeScript parser configured), include those extensions in the CLI command:

```sh
eslint . --ext .js, .jsx, .mjs
eslint . --ext .js,.jsx,.mjs,.tsx
```

Without this, JSX-related rules will not apply to `.jsx` files.
Without the relevant extension, ESLint will not lint those files; `.tsx` also requires a TypeScript parser configured in your project.

### eslint-config-airbnb/hooks

Expand Down
Loading