# @leancodepl/resolve-eslint-flat-config

> Resolve ESlint flat config plugin collisions

Latest version **10.6.0** (published 2026-07-14) · Apache-2.0 license · 0 weekly downloads

## Install

```sh
npm install @leancodepl/resolve-eslint-flat-config
pnpm add @leancodepl/resolve-eslint-flat-config
yarn add @leancodepl/resolve-eslint-flat-config
bun add @leancodepl/resolve-eslint-flat-config
```

## Health

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

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

Warnings: low downloads.

## Facts

| | |
|---|---|
| Version | 10.6.0 |
| Published | 2026-07-14 |
| First published | 2025-08-13 |
| Weekly downloads | 0 |
| License | Apache-2.0 |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Node | >=22.0.0 |
| Dependencies | 0 |
| Unpacked size | 25.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Provenance | attested (GitHub Actions) |
| GitHub stars | 4 |
| Author | LeanCode |
| Maintainers | konowrockis, leancode-npm |
| Keywords | eslint, flat, config, linting, javascript, typescript, leancode |

## Links

- npm: https://www.npmjs.com/package/@leancodepl/resolve-eslint-flat-config
- Repository: https://github.com/leancodepl/js_corelibrary
- Issues: https://github.com/leancodepl/js_corelibrary/issues
- npm.io page: https://npm.io/package/@leancodepl/resolve-eslint-flat-config

## 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

- 10.6.0 (latest) — 2026-07-14
- 10.5.2 — 2026-07-02
- 10.5.1 — 2026-07-01
- 10.5.0 — 2026-07-01
- 10.4.0 — 2026-06-23
- 10.3.1 — 2026-05-20
- 10.3.0 — 2026-04-16
- 10.2.1 — 2026-04-13
- 10.2.0 — 2026-04-10
- 10.1.3 — 2026-04-01
- 10.1.2 — 2026-02-26
- 10.1.1 — 2026-02-23
- 10.1.0 — 2026-02-16
- 10.0.2 — 2026-02-13
- 10.0.1 — 2026-02-13
- … 15 more at https://npm.io/package/@leancodepl/resolve-eslint-flat-config/versions

## README

# @leancodepl/resolve-eslint-flat-config

A TypeScript library for resolving ESLint flat config plugin collisions.

## Installation

```bash
npm install --save-dev @leancodepl/resolve-eslint-flat-config
# or
yarn add --dev @leancodepl/resolve-eslint-flat-config
```

## API

### `resolveFlatConfig(allModules)`

Resolves ESLint flat config by merging plugins and separating configurations.

**Parameters:**

- `allModules` (`Linter.Config[]`, **required**) - Array of ESLint flat config objects to merge

**Returns:** Array containing merged plugins object followed by individual configs

## Usage Examples

```javascript
// eslint.config.js
const { resolveFlatConfig } = require("@leancodepl/resolve-eslint-flat-config")

const customConfigs = [
  { plugins: { custom: customPlugin }, rules: { "custom/rule": "error" } },
  { plugins: { another: anotherPlugin }, rules: { "another/rule": "warn" } },
]

module.exports = resolveFlatConfig(customConfigs)
```

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