# @putstack/eslint-config-typescript

> ESLint config for TypeScript

Latest version **5.3.1** (published 2026-08-08) · MIT license · 0 weekly downloads

## Install

```sh
npm install @putstack/eslint-config-typescript
pnpm add @putstack/eslint-config-typescript
yarn add @putstack/eslint-config-typescript
bun add @putstack/eslint-config-typescript
```

## Health

**Score 70/100 (B)** — status: active.

Positive: has types; esm support; no vulnerabilities; has provenance; recently updated; high maintenance score.

Warnings: low downloads.

## Facts

| | |
|---|---|
| Version | 5.3.1 |
| Published | 2026-08-08 |
| First published | 2023-09-04 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM |
| Node | ^22 \|\| ^24 \|\| >=26 |
| Dependencies | 7 |
| Unpacked size | 23.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Provenance | attested (GitHub Actions) |
| GitHub stars | 1 |
| Author | Putro |
| Maintainers | laustsf |
| Keywords | typescript, eslint, config, eslintconfig, putro, putstack |

## Links

- npm: https://www.npmjs.com/package/@putstack/eslint-config-typescript
- Repository: https://github.com/Pewtro/configs
- npm.io page: https://npm.io/package/@putstack/eslint-config-typescript

## Dependencies (7)

- [eslint-plugin-depend](https://npm.io/package/eslint-plugin-depend.md) 1.5.0
- [eslint-plugin-sonarjs](https://npm.io/package/eslint-plugin-sonarjs.md) 4.2.0
- [eslint-plugin-unicorn](https://npm.io/package/eslint-plugin-unicorn.md) 73.0.0
- [eslint-plugin-import-x](https://npm.io/package/eslint-plugin-import-x.md) 4.17.1
- [eslint-plugin-de-morgan](https://npm.io/package/eslint-plugin-de-morgan.md) 2.1.3
- [eslint-plugin-perfectionist](https://npm.io/package/eslint-plugin-perfectionist.md) 5.10.1
- [eslint-import-resolver-typescript](https://npm.io/package/eslint-import-resolver-typescript.md) 4.4.5

## Alternatives

- [eslint-plugin-sonarjs](https://npm.io/package/eslint-plugin-sonarjs.md) — 2.9M weekly downloads
- [eslint-config-expo](https://npm.io/package/eslint-config-expo.md) — 1.5M weekly downloads
- [@matter/protocol](https://npm.io/package/@matter/protocol.md) — 63.5K weekly downloads
- [@eventcatalog/linter](https://npm.io/package/@eventcatalog/linter.md) — 24.8K weekly downloads
- [@inrupt/eslint-config-base](https://npm.io/package/@inrupt/eslint-config-base.md) — 4.5K weekly downloads

## Recent versions

- 5.3.1 (latest) — 2026-08-08
- 3.0.0-next.13 (next) — 2024-08-02
- 5.3.0 — 2026-08-08
- 5.2.0 — 2026-07-18
- 5.1.0 — 2026-07-10
- 5.0.2 — 2026-06-27
- 5.0.1 — 2026-06-27
- 5.0.0 — 2026-06-27
- 4.18.1 — 2026-05-12
- 4.18.0 — 2026-04-24
- 4.17.0 — 2026-04-01
- 4.16.0 — 2026-03-12
- 4.15.0 — 2026-02-15
- 4.14.0 — 2026-01-27
- 4.13.0 — 2026-01-01
- … 68 more at https://npm.io/package/@putstack/eslint-config-typescript/versions

## README

# An ESLint configuration by Putro

This ESLint setup should let any new (or existing) projects adhere to best practices within TypeScript and write fewer bugs as a result!
The default version is quite strict, so an existing project might opt for using the base version, see more under [Usage](#Usage).

The latest version (v3 and up) is using the new flat configuration from eslint and eslint v9. If you are not ready for this change, please stick with `2.6.1` or below.

## Installation

To install this package run the following command in the terminal in the root directory of your application.

```sh
pnpm install -D @putstack/eslint-config-typescript
```

**OR**

```sh
npm install --save-dev @putstack/eslint-config-typescript
```

**OR**

```sh
yarn add -D @putstack/eslint-config-typescript
```

## Usage

Ensure that your ESLint configuration is setup to utilize TypeScript's type checking API by following this [guide](https://typescript-eslint.io/linting/typed-linting). Note that if you're using this in a monorepo, you _SHOULD_ keep `"project":"true"` despite that the guide says otherwise in my experience.

Add this to your config by editing your eslint.config.js file or equivalent. While it is not required, it is recommended to use the config helper from `typescript-eslint` to help type your eslint configuration.

```js
import putstack from '@putstack/eslint-config-typescript';
import { config } from 'typescript-eslint';

//export default [...putstack.configs.recommended];
export default config(putstack.configs.recommended);
```

If the default is too strict on an existing project, you can also use the `base` configuration to exclude some of the more strict rules.
To see what is dincluded in which package, please view [this section](#eslint-plugins-and-configurations).

```js
import putstack from '@putstack/eslint-config-typescript';
import { config } from 'typescript-eslint';

//export default [...putstack.configs.base];
export default config(putstack.configs.base);
```

## Example

This project uses the configuration on itself, as seen in the root eslint.config.js file.

## ESLint rules

## ESLint PLugins and Configurations

This is a list of the plugins and configurations that are extended from.

### Base

#### Plugins

- [eslint-plugin-de-morgan](https://github.com/azat-io/eslint-plugin-de-morgan) - An ESLint plugin that enforces logical consistency by transforming negated boolean expressions according to De Morgan’s laws.
- [eslint-plugin-depend](https://github.com/es-tooling/eslint-plugin-depend) - An ESLint plugin for suggesting optimisations in choice of dependency, native equivalents, etc.
- [eslint-plugin-import-x](https://github.com/un-ts/eslint-plugin-import-x) - An ESLint plugin that aims to support ES6+ import/export syntax, and prevent issues with misspelling of file paths and import name
- [eslint-plugin-perfectionist](https://github.com/azat-io/eslint-plugin-perfectionist) - ESLint plugin for sorting various data such as objects, imports, types, enums, JSX props, etc.
- [eslint-plugin-sonarjs](https://github.com/SonarSource/eslint-plugin-sonarjs) - Code smell, bug detection, cognitive complexity and more.
- [typescript-eslint](https://github.com/typescript-eslint/typescript-eslint/tree/main/packages/eslint-plugin) - A large amount of TypeScript related ESLint rules, using the [recommended](https://typescript-eslint.io/linting/configs#projects-with-type-checking) type checking rules.

#### Configurations

- [eslint](https://eslint.org/docs/latest/rules/)
  - [recommended](https://github.com/eslint/eslint/blob/main/packages/js/src/configs/eslint-recommended.js) - The set of rules which are recommended for all projects by the ESLint team, indicated by the ✅ on the [rule list](https://eslint.org/docs/latest/rules/).
- [eslint-plugin-de-morgan](https://github.com/azat-io/eslint-plugin-de-morgan/blob/main/index.ts)
  - [recommended](https://github.com/azat-io/eslint-plugin-de-morgan/blob/main/index.ts) - Using the recommended setup to improve logical consistency.
- [eslint-plugin-depend](https://github.com/es-tooling/eslint-plugin-depend/tree/main/src/configs)
  - [recommended](https://github.com/es-tooling/eslint-plugin-depend/blob/main/src/configs/recommended.ts) - Using the recommended setup to catch dependency issues.
- [eslint-plugin-import-x](https://github.com/un-ts/eslint-plugin-import-x)
  - [recommended](https://github.com/un-ts/eslint-plugin-import-x/blob/master/src/config/recommended.ts) - Using the recommended setup to improve importing/exporting.
  - [typescript](https://github.com/un-ts/eslint-plugin-import-x/blob/master/src/config/typescript.ts) - Using the typescript setup to get type-aware rules regarding improving importing/exporting.
- [eslint-plugin-perfectionist](https://perfectionist.dev/configs/recommended-natural)
  - [recommended-natural](https://perfectionist.dev/configs/recommended-natural) - Using the recommended setup to sort imports and other data naturally. Natural sort compares strings containing a mixture of letters and numbers, just as a human would do when sorting. For example: `item-1`, `item-2`, `item-10`.
- [eslint-plugin-sonarjs](https://github.com/SonarSource/eslint-plugin-sonarjs#usage)
  - [recommended](https://github.com/SonarSource/eslint-plugin-sonarjs/blob/master/src/index.ts) - Using sonarjs recommended setup to catch general code smells.
- [typescript-eslint](https://github.com/typescript-eslint/typescript-eslint/tree/main)
  - [recommended-type-checked](https://typescript-eslint.io/linting/configs#recommended-type-checked) - To see a full list of the rules, click [here](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/src/configs/recommended-type-checked.ts).
  - [stylistic-type-checked](https://typescript-eslint.io/linting/configs#stylistic-type-checked) - To see a full list of the rules, click [here](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/src/configs/stylistic-type-checked.ts).

### Recommended

Recommended extends the base setup further to add additional rules, therefore it also includes all the rules above.

#### Plugins

- [eslint-plugin-unicorn](https://github.com/sindresorhus/eslint-plugin-unicorn/tree/main) - This plugin provides more than 100 powerful ESLint rules of which many are auto-fixable making it easy to fix any issues that arise!

#### Configurations

- [eslint-plugin-unicorn](https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/index.js)
  - [recommended](https://github.com/sindresorhus/eslint-plugin-unicorn?tab=readme-ov-file#recommended-config) - Using the recommended configuration to catch common issues and enforce best practices.

---
_Source: https://npm.io/package/@putstack/eslint-config-typescript · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
