# Airbnb TypeScript

Used on top of the Airbnb config: replaces the rules that have a typescript-eslint equivalent with that equivalent.

- Linter: ESLint
- Package: `eslint-config-airbnb-typescript` (https://github.com/iamturns/eslint-config-airbnb-typescript)
- Author: Matt Turnbull (community)
- Rules: 19, plus 15 from plugins this site doesn't track
- Weekly downloads: 1.8M, +1.2% last quarter
- Technologies: typescript (16), imports (2), react (1)

## Install

```sh
npm install -D eslint eslint-config-airbnb-typescript
pnpm add -D eslint eslint-config-airbnb-typescript
yarn add -D eslint eslint-config-airbnb-typescript
bun add -d eslint eslint-config-airbnb-typescript
```

## Config: `eslint.config.js`

```js
// .eslintrc.json (legacy config format)
{
  "extends": ["airbnb", "airbnb-typescript"]
}
```

## Rules it enables

| Rule | Severity | Description | Reach |
| --- | --- | --- | --- |
| [typescript/no-unused-vars](https://lintradar.dev/rules/typescript/no-unused-vars.md) | error | Disallow unused variables | 185.6M |
| [typescript/no-array-constructor](https://lintradar.dev/rules/typescript/no-array-constructor.md) | error | Disallow generic `Array` constructors | 185.6M |
| [typescript/no-unused-expressions](https://lintradar.dev/rules/typescript/no-unused-expressions.md) | error | Disallow unused expressions | 184.8M |
| [typescript/no-implied-eval](https://lintradar.dev/rules/typescript/no-implied-eval.md) | error | Disallow the use of `eval()`-like functions | 98.9M |
| [typescript/no-useless-constructor](https://lintradar.dev/rules/typescript/no-useless-constructor.md) | error | Disallow unnecessary constructors | 52.3M |
| [typescript/return-await](https://lintradar.dev/rules/typescript/return-await.md) | error | Enforce consistent awaiting of returned promises | 48.5M |
| [typescript/no-empty-function](https://lintradar.dev/rules/typescript/no-empty-function.md) | error | Disallow empty functions | 46.4M |
| [import/no-extraneous-dependencies](https://lintradar.dev/rules/import/no-extraneous-dependencies.md) | error | Forbid the use of extraneous packages. | 14.2M |
| [import/extensions](https://lintradar.dev/rules/import/extensions.md) | error | Ensure consistent use of file extension within the import path. | 11.8M |
| [typescript/no-redeclare](https://lintradar.dev/rules/typescript/no-redeclare.md) | error | Disallow variable redeclaration | 6.6M |
| [typescript/no-use-before-define](https://lintradar.dev/rules/typescript/no-use-before-define.md) | error | Disallow the use of variables before they are defined | 6.4M |
| [react/jsx-filename-extension](https://lintradar.dev/rules/react/jsx-filename-extension.md) | error | Disallow file extensions that may contain JSX | 5.2M |
| [typescript/dot-notation](https://lintradar.dev/rules/typescript/dot-notation.md) | error | Enforce dot notation whenever possible | 4.5M |
| [typescript/no-dupe-class-members](https://lintradar.dev/rules/typescript/no-dupe-class-members.md) | error | Disallow duplicate class members | 3.5M |
| [typescript/no-shadow](https://lintradar.dev/rules/typescript/no-shadow.md) | error | Disallow variable declarations from shadowing variables declared in the outer scope | 3.5M |
| [typescript/naming-convention](https://lintradar.dev/rules/typescript/naming-convention.md) | error | Enforce naming conventions for everything across a codebase | 2.4M |
| [typescript/default-param-last](https://lintradar.dev/rules/typescript/default-param-last.md) | error | Enforce default parameters to be last | 2.2M |
| [typescript/no-loss-of-precision](https://lintradar.dev/rules/typescript/no-loss-of-precision.md) | error | Disallow literal numbers that lose precision | 2.2M |
| [typescript/no-loop-func](https://lintradar.dev/rules/typescript/no-loop-func.md) | error | Disallow function declarations that contain unsafe references inside loop statements | 1.8M |

---

Web page: https://lintradar.dev/presets/airbnb-typescript. Data from npm and the linters' documentation, collected Dec 4, 2026. Site guide for agents: https://lintradar.dev/llms.txt
