# typescript-eslint recommended type-checked

The recommended set plus the correctness rules that need type information, such as no-floating-promises.

- Linter: ESLint
- Package: `@typescript-eslint/eslint-plugin` (https://typescript-eslint.io/users/configs#recommended-type-checked)
- Author: typescript-eslint (official)
- Rules: 47
- Weekly downloads: 175.9M, +29.5% last quarter
- Technologies: typescript (43), javascript (4)

## Install

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

## Config: `eslint.config.js`

```js
// eslint.config.js
import tseslint from "typescript-eslint";

export default [
  ...tseslint.configs.recommendedTypeChecked,
  { languageOptions: { parserOptions: { projectService: true } } },
];
```

## Rules it enables

| Rule | Severity | Description | Reach |
| --- | --- | --- | --- |
| [typescript/no-duplicate-enum-values](https://lintradar.dev/rules/typescript/no-duplicate-enum-values.md) | error | Disallow duplicate enum member values | 260.7M |
| [typescript/no-non-null-asserted-optional-chain](https://lintradar.dev/rules/typescript/no-non-null-asserted-optional-chain.md) | error | Disallow non-null assertions after an optional chain expression | 260.7M |
| [typescript/no-this-alias](https://lintradar.dev/rules/typescript/no-this-alias.md) | error | Disallow aliasing `this` | 260.7M |
| [typescript/prefer-namespace-keyword](https://lintradar.dev/rules/typescript/prefer-namespace-keyword.md) | error | Require using `namespace` keyword over `module` keyword to declare custom TypeScript modules | 260.7M |
| [typescript/no-extra-non-null-assertion](https://lintradar.dev/rules/typescript/no-extra-non-null-assertion.md) | error | Disallow extra non-null assertions | 260.7M |
| [typescript/no-misused-new](https://lintradar.dev/rules/typescript/no-misused-new.md) | error | Enforce valid definition of `new` and `constructor` | 260.7M |
| [typescript/no-unsafe-declaration-merging](https://lintradar.dev/rules/typescript/no-unsafe-declaration-merging.md) | error | Disallow unsafe declaration merging | 260.7M |
| [typescript/triple-slash-reference](https://lintradar.dev/rules/typescript/triple-slash-reference.md) | error | Disallow certain triple slash directives in favor of ES6-style import declarations | 260M |
| [typescript/prefer-as-const](https://lintradar.dev/rules/typescript/prefer-as-const.md) | error | Enforce the use of `as const` over literal type | 232.2M |
| [typescript/no-wrapper-object-types](https://lintradar.dev/rules/typescript/no-wrapper-object-types.md) | error | Disallow using confusing built-in primitive class wrappers | 232.2M |
| [eslint/prefer-const](https://lintradar.dev/rules/eslint/prefer-const.md) | error | Require `const` declarations for variables that are never reassigned after declared | 223.9M |
| [eslint/prefer-rest-params](https://lintradar.dev/rules/eslint/prefer-rest-params.md) | error | Require rest parameters instead of `arguments` | 220.5M |
| [typescript/no-unnecessary-type-constraint](https://lintradar.dev/rules/typescript/no-unnecessary-type-constraint.md) | error | Disallow unnecessary constraints on generic types | 209.9M |
| [typescript/ban-ts-comment](https://lintradar.dev/rules/typescript/ban-ts-comment.md) | error | Disallow `@ts-<directive>` comments or require descriptions after directives | 209.9M |
| [typescript/no-explicit-any](https://lintradar.dev/rules/typescript/no-explicit-any.md) | error | Disallow the `any` type | 208.7M |
| [eslint/no-var](https://lintradar.dev/rules/eslint/no-var.md) | error | Require `let` or `const` instead of `var` | 195.4M |
| [eslint/prefer-spread](https://lintradar.dev/rules/eslint/prefer-spread.md) | error | Require spread operators instead of `.apply()` | 192M |
| [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-unsafe-function-type](https://lintradar.dev/rules/typescript/no-unsafe-function-type.md) | error | Disallow using the unsafe built-in Function type | 181.4M |
| [typescript/no-empty-object-type](https://lintradar.dev/rules/typescript/no-empty-object-type.md) | error | Disallow accidentally using the "empty object" type | 180.8M |
| [typescript/no-namespace](https://lintradar.dev/rules/typescript/no-namespace.md) | error | Disallow TypeScript namespaces | 180.7M |
| [typescript/no-require-imports](https://lintradar.dev/rules/typescript/no-require-imports.md) | error | Disallow invocation of `require()` | 178.1M |
| [typescript/no-floating-promises](https://lintradar.dev/rules/typescript/no-floating-promises.md) | error | Require Promise-like statements to be handled appropriately | 126.5M |
| [typescript/no-array-delete](https://lintradar.dev/rules/typescript/no-array-delete.md) | error | Disallow using the `delete` operator on array values | 125.9M |
| [typescript/no-duplicate-type-constituents](https://lintradar.dev/rules/typescript/no-duplicate-type-constituents.md) | error | Disallow duplicate constituents of union or intersection types | 125.9M |
| [typescript/no-unsafe-unary-minus](https://lintradar.dev/rules/typescript/no-unsafe-unary-minus.md) | error | Require unary negation to take a number | 125.9M |
| [typescript/no-redundant-type-constituents](https://lintradar.dev/rules/typescript/no-redundant-type-constituents.md) | error | Disallow members of unions and intersections that do nothing or override type information | 125.5M |
| [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-for-in-array](https://lintradar.dev/rules/typescript/no-for-in-array.md) | error | Disallow iterating over an array with a for-in loop | 97.4M |
| [typescript/no-base-to-string](https://lintradar.dev/rules/typescript/no-base-to-string.md) | error | Require `.toString()` and `.toLocaleString()` to only be called on objects which provide useful information when stringified | 97.4M |
| [typescript/await-thenable](https://lintradar.dev/rules/typescript/await-thenable.md) | error | Disallow awaiting a value that is not a Thenable | 97.4M |
| [typescript/restrict-template-expressions](https://lintradar.dev/rules/typescript/restrict-template-expressions.md) | error | Enforce template literal expressions to be of `string` type | 97.4M |
| [typescript/unbound-method](https://lintradar.dev/rules/typescript/unbound-method.md) | error | Enforce unbound methods are called with their expected scope | 97M |
| [typescript/no-misused-promises](https://lintradar.dev/rules/typescript/no-misused-promises.md) | error | Disallow Promises in places not designed to handle them | 75.1M |
| [typescript/no-unnecessary-type-assertion](https://lintradar.dev/rules/typescript/no-unnecessary-type-assertion.md) | error | Disallow type assertions that do not change the type of an expression | 75.1M |
| [typescript/no-unsafe-return](https://lintradar.dev/rules/typescript/no-unsafe-return.md) | error | Disallow returning a value with type `any` from a function | 46.6M |
| [typescript/only-throw-error](https://lintradar.dev/rules/typescript/only-throw-error.md) | error | Disallow throwing non-`Error` values as exceptions | 46.6M |
| [typescript/prefer-promise-reject-errors](https://lintradar.dev/rules/typescript/prefer-promise-reject-errors.md) | error | Require using Error objects as Promise rejection reasons | 46.6M |
| [typescript/restrict-plus-operands](https://lintradar.dev/rules/typescript/restrict-plus-operands.md) | error | Require both operands of addition to be the same type and be `bigint`, `number`, or `string` | 46.6M |
| [typescript/no-unsafe-assignment](https://lintradar.dev/rules/typescript/no-unsafe-assignment.md) | error | Disallow assigning a value with type `any` to variables and properties | 46.6M |
| [typescript/no-unsafe-enum-comparison](https://lintradar.dev/rules/typescript/no-unsafe-enum-comparison.md) | error | Disallow comparing an enum value with a non-enum value | 46.6M |
| [typescript/no-unsafe-member-access](https://lintradar.dev/rules/typescript/no-unsafe-member-access.md) | error | Disallow member access on a value with type `any` | 46.6M |
| [typescript/no-unsafe-argument](https://lintradar.dev/rules/typescript/no-unsafe-argument.md) | error | Disallow calling a function with a value with type `any` | 46.2M |
| [typescript/no-unsafe-call](https://lintradar.dev/rules/typescript/no-unsafe-call.md) | error | Disallow calling a value with type `any` | 46.2M |
| [typescript/require-await](https://lintradar.dev/rules/typescript/require-await.md) | error | Disallow async functions which do not return promises and have no `await` expression | 44.2M |

---

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