# typescript-eslint strict type-checked

The strict set plus rules that use the type checker, such as no-floating-promises. Slower to run, catches the most.

- Linter: ESLint
- Package: `@typescript-eslint/eslint-plugin` (https://typescript-eslint.io/users/configs#strict-type-checked)
- Author: typescript-eslint (official)
- Rules: 75
- Weekly downloads: 175.9M, +29.5% last quarter
- Technologies: typescript (71), 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.strictTypeChecked,
  { 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/no-meaningless-void-operator](https://lintradar.dev/rules/typescript/no-meaningless-void-operator.md) | error | Disallow the `void` operator except when used to discard a value | 97.4M |
| [typescript/no-misused-spread](https://lintradar.dev/rules/typescript/no-misused-spread.md) | error | Disallow using the spread operator when it might cause unexpected behavior | 97.4M |
| [typescript/no-useless-default-assignment](https://lintradar.dev/rules/typescript/no-useless-default-assignment.md) | error | Disallow default values that will never be used | 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/prefer-literal-enum-member](https://lintradar.dev/rules/typescript/prefer-literal-enum-member.md) | error | Require all enum members to be literal values | 77.4M |
| [typescript/no-extraneous-class](https://lintradar.dev/rules/typescript/no-extraneous-class.md) | error | Disallow classes used as namespaces | 76.6M |
| [typescript/no-invalid-void-type](https://lintradar.dev/rules/typescript/no-invalid-void-type.md) | error | Disallow `void` type outside of generic or return types | 76.3M |
| [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-non-null-assertion](https://lintradar.dev/rules/typescript/no-non-null-assertion.md) | error | Disallow non-null assertions using the `!` postfix operator | 74.7M |
| [typescript/no-useless-constructor](https://lintradar.dev/rules/typescript/no-useless-constructor.md) | error | Disallow unnecessary constructors | 52.3M |
| [typescript/no-non-null-asserted-nullish-coalescing](https://lintradar.dev/rules/typescript/no-non-null-asserted-nullish-coalescing.md) | error | Disallow non-null assertions in the left operand of a nullish coalescing operator | 48.9M |
| [typescript/return-await](https://lintradar.dev/rules/typescript/return-await.md) | error | Enforce consistent awaiting of returned promises | 48.5M |
| [typescript/unified-signatures](https://lintradar.dev/rules/typescript/unified-signatures.md) | error | Disallow two overloads that could be unified into one with a union or an optional/rest parameter | 48.2M |
| [typescript/no-dynamic-delete](https://lintradar.dev/rules/typescript/no-dynamic-delete.md) | error | Disallow using the `delete` operator on computed key expressions | 48.2M |
| [typescript/no-mixed-enums](https://lintradar.dev/rules/typescript/no-mixed-enums.md) | error | Disallow enums from having both number and string members | 46.6M |
| [typescript/no-unnecessary-template-expression](https://lintradar.dev/rules/typescript/no-unnecessary-template-expression.md) | error | Disallow unnecessary template expressions | 46.6M |
| [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/prefer-reduce-type-parameter](https://lintradar.dev/rules/typescript/prefer-reduce-type-parameter.md) | error | Enforce using type parameter when calling `Array#reduce` instead of using a type assertion | 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-deprecated](https://lintradar.dev/rules/typescript/no-deprecated.md) | error | Disallow using code marked as `@deprecated` | 46.6M |
| [typescript/no-unnecessary-type-conversion](https://lintradar.dev/rules/typescript/no-unnecessary-type-conversion.md) | error | Disallow conversion idioms when they do not change the type or value of the expression | 46.6M |
| [typescript/no-unsafe-enum-assignment](https://lintradar.dev/rules/typescript/no-unsafe-enum-assignment.md) | error | Disallow assigning non-enum values to enum typed locations | 46.6M |
| [typescript/prefer-return-this-type](https://lintradar.dev/rules/typescript/prefer-return-this-type.md) | error | Enforce that `this` is used when only `this` type is returned | 46.6M |
| [typescript/related-getter-setter-pairs](https://lintradar.dev/rules/typescript/related-getter-setter-pairs.md) | error | Enforce that `get()` types should be assignable to their equivalent `set()` type | 46.6M |
| [typescript/use-unknown-in-catch-callback-variable](https://lintradar.dev/rules/typescript/use-unknown-in-catch-callback-variable.md) | error | Enforce typing arguments in Promise rejection callbacks as `unknown` | 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/no-unnecessary-condition](https://lintradar.dev/rules/typescript/no-unnecessary-condition.md) | error | Disallow conditionals where the type is always truthy or always falsy | 46.2M |
| [typescript/no-confusing-void-expression](https://lintradar.dev/rules/typescript/no-confusing-void-expression.md) | error | Require expressions of type void to appear in statement position | 46.2M |
| [typescript/no-generated-empty-object-type](https://lintradar.dev/rules/typescript/no-generated-empty-object-type.md) | error | Disallow type operations that resolve to the "empty object" type | 46.2M |
| [typescript/no-unnecessary-boolean-literal-compare](https://lintradar.dev/rules/typescript/no-unnecessary-boolean-literal-compare.md) | error | Disallow unnecessary equality comparisons against boolean literals | 46.2M |
| [typescript/no-unnecessary-type-arguments](https://lintradar.dev/rules/typescript/no-unnecessary-type-arguments.md) | error | Disallow type arguments that are equal to the default | 46.2M |
| [typescript/no-unnecessary-type-parameters](https://lintradar.dev/rules/typescript/no-unnecessary-type-parameters.md) | error | Disallow type parameters that aren't used multiple times | 46.2M |
| [typescript/no-unsafe-class-instance-assignment](https://lintradar.dev/rules/typescript/no-unsafe-class-instance-assignment.md) | error | Disallow assigning non-instance values to class instance typed locations | 46M |
| [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-strict-type-checked. Data from npm and the linters' documentation, collected Dec 4, 2026. Site guide for agents: https://lintradar.dev/llms.txt
