# @strv/eslint-config-typescript

> STRV's ESLint config for TypeScript projects

Latest version **6.0.0** (published 2025-06-03) · BSD-3-Clause license · 0 weekly downloads

## Install

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

## Health

**Score 40/100 (D)** — status: stable.

Positive: esm support; no vulnerabilities.

Warnings: low downloads; no types.

Negative: stale.

## Facts

| | |
|---|---|
| Version | 6.0.0 |
| Published | 2025-06-03 |
| First published | 2019-02-07 |
| Weekly downloads | 0 |
| License | BSD-3-Clause |
| TypeScript types | none |
| Module format | ESM |
| Node | >=22 |
| Dependencies | 4 |
| Unpacked size | 51.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 94 |
| Author | Robert Rossmann <rr.rossmann@me.com> |
| Maintainers | strvuser, robertrossmann, lucasconstantino, xhudec |
| Keywords | config, eslint, typescript, strv |

## Links

- npm: https://www.npmjs.com/package/@strv/eslint-config-typescript
- Repository: https://github.com/strvcom/code-quality-tools
- Issues: https://github.com/strvcom/code-quality-tools/issues
- npm.io page: https://npm.io/package/@strv/eslint-config-typescript

## Dependencies (4)

- [@strv/eslint-config-base](https://npm.io/package/@strv/eslint-config-base.md) ^5.0.0
- [@typescript-eslint/parser](https://npm.io/package/@typescript-eslint/parser.md) ^8.0.0
- [@typescript-eslint/eslint-plugin](https://npm.io/package/@typescript-eslint/eslint-plugin.md) ^8.0.0
- [eslint-import-resolver-typescript](https://npm.io/package/eslint-import-resolver-typescript.md) ^4.3.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
- [@pandacss/eslint-plugin](https://npm.io/package/@pandacss/eslint-plugin.md) — 18.7K weekly downloads

## Recent versions

- 6.0.0 (latest) — 2025-06-03
- 6.0.0-alpha.4 (next) — 2025-06-03
- 6.0.0-alpha.3 — 2025-05-30
- 6.0.0-alpha.2 — 2025-01-24
- 6.0.0-alpha.1 — 2025-01-24
- 6.0.0-alpha.0 — 2025-01-24
- 5.0.0 — 2024-02-16
- 4.1.2 — 2023-07-11
- 4.1.1 — 2023-07-11
- 4.1.0 — 2023-07-11
- 4.0.0 — 2023-07-06
- 3.2.0 — 2022-07-18
- 3.1.2 — 2022-04-11
- 3.1.1 — 2022-04-04
- 3.1.0 — 2022-03-23
- … 29 more at https://npm.io/package/@strv/eslint-config-typescript/versions

## README

# @strv/eslint-config-typescript

> Configuration for TypeScript projects.

## Installation

```sh
npm install -D @strv/eslint-config-typescript
```

## Rulesets

- `'@strv/eslint-config-typescript'`: A generic ruleset that focuses on code correctness
- `'@strv/eslint-config-typescript/optional'`: Addiitonal ruleset that might provide useful tips and hints how to improve your code
- `'@strv/eslint-config-typescript/style'`: Ruleset that focuses solely on code style (indentation, spacing, naming, syntax preference etc.)
- `'@strv/eslint-config-typescript/react'`: Ruleset that provides additional customisations for the `@strv/eslint-config-react` ruleset when working with TypeScript`

## Usage

```js
// eslint.config.mjs
import typescript from '@strv/eslint-config-typescript'
import optional from '@strv/eslint-config-typescript/optional'
import style from '@strv/eslint-config-typescript/style'
// Just to help us re-use the same globs multiple times
const globs = {
  js: '**/*.js',
}

/** @type {Array<import("eslint").Linter.Config>} */
const config = [
  { files: [globs.js], ...typescript },
  { files: [globs.js], ...optional },
  { files: [globs.js], ...style },
  // Any custom settings to be applied
  { files: [globs.js],
    languageOptions: { ecmaVersion: 2023 }
  },
]

export default config
```

## License

See the [LICENSE](LICENSE) file for information.

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