# @rasmuslp/eslint-config

> My configs

Latest version **10.1.4** (published 2026-09-03) · BSD-3-Clause license · 0 weekly downloads

## Install

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

## Health

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

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

Warnings: low downloads; no types.

## Facts

| | |
|---|---|
| Version | 10.1.4 |
| Published | 2026-09-03 |
| First published | 2019-03-02 |
| Weekly downloads | 0 |
| License | BSD-3-Clause |
| TypeScript types | none |
| Module format | ESM |
| Node | >=22.13.0 |
| Dependencies | 8 |
| Unpacked size | 9.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Provenance | attested (GitHub Actions) |
| GitHub stars | 0 |
| Author | Rasmus Ljungmann Pedersen |
| Maintainers | rasmuslp |

## Links

- npm: https://www.npmjs.com/package/@rasmuslp/eslint-config
- Repository: https://github.com/rasmuslp/eslint-config-rasmuslp
- Homepage: https://github.com/rasmuslp/eslint-config-rasmuslp#readme
- Issues: https://github.com/rasmuslp/eslint-config-rasmuslp/issues
- npm.io page: https://npm.io/package/@rasmuslp/eslint-config

## Dependencies (8)

- [@eslint/js](https://npm.io/package/@eslint/js.md) ^9.39.5
- [typescript-eslint](https://npm.io/package/typescript-eslint.md) ^8.69.0
- [eslint-plugin-promise](https://npm.io/package/eslint-plugin-promise.md) ^7.3.0
- [eslint-plugin-unicorn](https://npm.io/package/eslint-plugin-unicorn.md) ^65.0.1
- [eslint-config-prettier](https://npm.io/package/eslint-config-prettier.md) ^10.1.8
- [eslint-plugin-import-x](https://npm.io/package/eslint-plugin-import-x.md) ^4.17.1
- [eslint-config-flat-gitignore](https://npm.io/package/eslint-config-flat-gitignore.md) ^2.4.0
- [eslint-import-resolver-typescript](https://npm.io/package/eslint-import-resolver-typescript.md) ^4.4.5

## Recent versions

- 10.1.4 (latest) — 2026-09-03
- 9.0.0-rc.0 (beta) — 2026-03-01
- 10.1.3 — 2026-08-10
- 10.1.2 — 2026-07-29
- 10.1.1 — 2026-07-06
- 10.1.0 — 2026-06-07
- 10.0.0 — 2026-06-07
- 9.1.0 — 2026-04-12
- 9.0.0 — 2026-04-12
- 8.4.13 — 2026-03-29
- 8.4.12 — 2026-03-22
- 8.4.11 — 2026-03-16
- 8.4.10 — 2026-03-01
- 8.4.9 — 2026-02-22
- 8.4.8 — 2026-02-03
- … 118 more at https://npm.io/package/@rasmuslp/eslint-config/versions

## README

# @rasmuslp/eslint-config

[![NPM package](https://img.shields.io/npm/v/@rasmuslp/eslint-config.svg)](https://www.npmjs.com/package/@rasmuslp/eslint-config)
[![GitHub: CI](https://github.com/rasmuslp/eslint-config-rasmuslp/workflows/CI/badge.svg)](https://github.com/rasmuslp/eslint-config-rasmuslp/actions)

## Installation

Install the config:

```bash
npm install --save-dev @rasmuslp/eslint-config
```

## Usage

Configure eslint in your project by using this configuration in your local `eslint.config.js` (or `eslint.config.ts` — the package ships TypeScript declarations).

```javascript
// eslint.config.js
import { defineConfig } from 'eslint/config';
import rasmuslpConfig from '@rasmuslp/eslint-config';

export default defineConfig([rasmuslpConfig]);
```

### Options

The default export is the config with no optional integrations enabled. For Node or Jest support, use the named `eslintConfigRasmuslp` factory instead. It is async, so `await` it:

```javascript
// eslint.config.js
import { defineConfig } from 'eslint/config';
import { eslintConfigRasmuslp } from '@rasmuslp/eslint-config';

export default defineConfig([await eslintConfigRasmuslp({ withJest: true, withNode: true })]);
```

| Option     | Default | Effect                                                                               |
| ---------- | ------- | ------------------------------------------------------------------------------------ |
| `withNode` | `false` | Enables `eslint-plugin-n` (Node.js rules). Requires installing `eslint-plugin-n`.    |
| `withJest` | `false` | Enables `eslint-plugin-jest` (Jest rules). Requires installing `eslint-plugin-jest`. |

Both plugins are optional peer dependencies — install the corresponding package only when you enable its option:

```bash
npm install --save-dev eslint-plugin-n      # for withNode
npm install --save-dev eslint-plugin-jest   # for withJest
```

Lastly, specify the minimum supported Node version in `package.json` to enable checks for using unsupported Node features.

```json
	"engines": {
		"node": ">=22.13.0"
	}
```

## Behaviour

### Root-level JS files

Typed linting is disabled for **all** root-level JS files (`*.js`, `*.mjs`, `*.cjs`). This is intentional: the assumption is that your actual source lives in a subfolder (e.g. `src/`), so the files left at the root are config files such as `eslint.config.js` or `.ncurc.js`. These typically live outside the TypeScript project, so applying type-aware rules to them would otherwise error.

Files in subdirectories are unaffected and keep typed linting. If you keep source files at the repository root, they will _not_ get typed linting — move them into a subfolder to opt back in.

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