# @saasjetlib/eslint-config-typescript

> SaaSJet ESLint config for TypeScript

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

## Install

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

## Health

**Score 50/100 (C)** — status: active.

Positive: esm support; no vulnerabilities.

Warnings: low downloads; no types.

## Facts

| | |
|---|---|
| Version | 2.1.1 |
| Published | 2026-06-08 |
| First published | 2024-01-08 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Dependencies | 3 |
| Unpacked size | 21.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Dev Team |
| Maintainers | saasjet, bohdan.h |

## Links

- npm: https://www.npmjs.com/package/@saasjetlib/eslint-config-typescript
- npm.io page: https://npm.io/package/@saasjetlib/eslint-config-typescript

## Dependencies (3)

- [eslint-plugin-import-x](https://npm.io/package/eslint-plugin-import-x.md) ^4.16.1
- [@typescript-eslint/parser](https://npm.io/package/@typescript-eslint/parser.md) ^8.40.0
- [@typescript-eslint/eslint-plugin](https://npm.io/package/@typescript-eslint/eslint-plugin.md) ^8.40.0

## Recent versions

- 2.1.1 (latest) — 2026-06-08
- 2.1.0 — 2025-08-22
- 2.0.1 — 2025-08-20
- 2.0.0 — 2025-08-12
- 1.14.0 — 2025-01-15
- 1.13.0 — 2025-01-13
- 1.12.0 — 2025-01-13
- 1.11.0 — 2025-01-13
- 1.10.0 — 2025-01-10
- 1.9.0 — 2024-12-31
- 1.8.0 — 2024-12-30
- 1.7.0 — 2024-12-30
- 1.6.0 — 2024-12-30
- 1.5.8 — 2024-11-21
- 1.5.7 — 2024-11-21
- … 15 more at https://npm.io/package/@saasjetlib/eslint-config-typescript/versions

## README

# SaaSJet ESLint config for TypeScript
This package provides a shared, extensible ESLint **flat config** for TypeScript projects (ESLint 9+).

## Usage

1. Install packages

###### npm
```sh
npm install --save-dev @saasjetlib/eslint-config-typescript eslint typescript
```
###### yarn
```sh
yarn add --dev @saasjetlib/eslint-config-typescript eslint typescript
```

> You only install the config plus the `eslint` and `typescript` peer dependencies. The parser
> (`@typescript-eslint/parser`) and plugins (`@typescript-eslint/eslint-plugin`, `eslint-plugin-import-x`)
> ship as dependencies of this package and are installed automatically.

2. Create an ESLint configuration file `eslint.config.mjs`
```js
import typescriptConfig from '@saasjetlib/eslint-config-typescript';

export default [
  ...typescriptConfig,
];
```

The config already wires up the `@typescript-eslint/parser` (as a parser object) and registers the
`@typescript-eslint` and `import-x` plugins, so it works as-is in flat config.

3. Customizing

This is a flat config, so override anything by appending your own config object. The TypeScript block
sets `languageOptions.parserOptions.project: './tsconfig.json'` by default — point it at a different
tsconfig (or set `tsconfigRootDir`) like this:

```js
import typescriptConfig from '@saasjetlib/eslint-config-typescript';

export default [
  ...typescriptConfig,
  {
    files: ['**/*.ts', '**/*.tsx'],
    languageOptions: {
      parserOptions: {
        project: ['./tsconfig.eslint.json'],
        tsconfigRootDir: import.meta.dirname,
      },
    },
  },
];
```

> Note: this is flat config (ESLint 9+). The legacy eslintrc options `env.*` and
> `parserOptions.sourceType` no longer apply — use `languageOptions` / `languageOptions.globals` instead.

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