# boehringer-ingelheim/eslint-config architecture

> Architecture diagram of the GitHub repository boehringer-ingelheim/eslint-config, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-11-23). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/boehringer-ingelheim/eslint-config
- Repository: https://github.com/boehringer-ingelheim/eslint-config

## Overview

This package provides reusable ESLint flat configurations and an ignore-file helper. A project maintainer imports the package, selects a preset (optionally combining presets), and ESLint applies its rules to the project. The graph covers documented preset variants and the helper; unsampled local and Prettier-disable implementations are represented only by their tree paths, so their internal behavior is not detailed.

Main entry points: [`src/main.ts`](https://github.com/boehringer-ingelheim/eslint-config/blob/master/src/main.ts) (Config exports), [`src/configs/base.ts`](https://github.com/boehringer-ingelheim/eslint-config/blob/master/src/configs/base.ts) (Base rules), [`src/configs/react.ts`](https://github.com/boehringer-ingelheim/eslint-config/blob/master/src/configs/react.ts) (React preset), [`src/configs/nextjs.ts`](https://github.com/boehringer-ingelheim/eslint-config/blob/master/src/configs/nextjs.ts) (Next.js preset)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_api["Package API"]
  node_package_api["Config exports<br/>[main.ts]"]
end

subgraph group_core["Core Configurations"]
  node_base["Base rules<br/>[base.ts]"]
  node_strict["Strict rules<br/>[strict.ts]"]
  node_local["Local rules<br/>[local.ts]"]
  node_naming["Naming convention"]
  node_prettier_disable["Prettier disable"]
end

subgraph group_frameworks["Framework Presets"]
  node_react["React preset<br/>[react.ts]"]
  node_nextjs["Next.js preset<br/>[nextjs.ts]"]
  node_playwright["Playwright preset<br/>[playwright.ts]"]
end

subgraph group_helpers["Configuration Helpers"]
  node_ignore_helper["Ignore-file helper"]
  node_sort_settings["Sorting settings"]
  node_nextjs_names["Routing file names<br/>[nextjs.utils.ts]"]
  node_constants["Config constants<br/>[constants.ts]"]
end

node_maintainer(("Project maintainer"))
node_eslint["ESLint"]

node_maintainer -->|"imports package"| node_package_api
node_package_api -->|"exports"| node_base
node_package_api -->|"exports"| node_strict
node_package_api -->|"exports"| node_local
node_package_api -->|"exports"| node_naming
node_package_api -->|"exports"| node_prettier_disable
node_package_api -->|"exports"| node_react
node_package_api -->|"exports"| node_nextjs
node_package_api -->|"exports"| node_playwright
node_package_api -->|"exports"| node_ignore_helper
node_maintainer -->|"runs lint"| node_eslint
node_eslint -->|"applies rules"| node_base
node_base -->|"configures"| node_eslint
node_strict -->|"extends"| node_base
node_react -->|"extends"| node_base
node_nextjs -->|"extends"| node_react
node_base -->|"uses settings"| node_sort_settings
node_react -->|"uses settings"| node_sort_settings
node_base -->|"uses globs"| node_constants
node_nextjs -->|"uses names"| node_nextjs_names
node_package_api -->|"exports helper"| node_ignore_helper

click node_package_api "https://github.com/boehringer-ingelheim/eslint-config/blob/master/src/main.ts"
click node_base "https://github.com/boehringer-ingelheim/eslint-config/blob/master/src/configs/base.ts"
click node_strict "https://github.com/boehringer-ingelheim/eslint-config/blob/master/src/configs/strict.ts"
click node_local "https://github.com/boehringer-ingelheim/eslint-config/blob/master/src/configs/local.ts"
click node_naming "https://github.com/boehringer-ingelheim/eslint-config/blob/master/src/configs/experimental-naming-convention.ts"
click node_prettier_disable "https://github.com/boehringer-ingelheim/eslint-config/blob/master/src/configs/prettier-disable.ts"
click node_react "https://github.com/boehringer-ingelheim/eslint-config/blob/master/src/configs/react.ts"
click node_nextjs "https://github.com/boehringer-ingelheim/eslint-config/blob/master/src/configs/nextjs.ts"
click node_playwright "https://github.com/boehringer-ingelheim/eslint-config/blob/master/src/configs/playwright.ts"
click node_ignore_helper "https://github.com/boehringer-ingelheim/eslint-config/blob/master/src/lib/include-ignore-file.ts"
click node_sort_settings "https://github.com/boehringer-ingelheim/eslint-config/blob/master/src/lib/eslint-plugin-perfectionist.ts"
click node_nextjs_names "https://github.com/boehringer-ingelheim/eslint-config/blob/master/src/lib/nextjs.utils.ts"
click node_constants "https://github.com/boehringer-ingelheim/eslint-config/blob/master/src/lib/constants.ts"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_package_api toneBlue
class node_base,node_strict,node_local,node_naming,node_prettier_disable toneAmber
class node_react,node_nextjs,node_playwright toneMint
class node_ignore_helper,node_sort_settings,node_nextjs_names,node_constants toneRose
class node_maintainer,node_eslint toneIndigo
```

## Components

### Package API

- [Config exports](https://github.com/boehringer-ingelheim/eslint-config/blob/master/src/main.ts): `src/main.ts`

### Core Configurations

- [Base rules](https://github.com/boehringer-ingelheim/eslint-config/blob/master/src/configs/base.ts): `src/configs/base.ts`
- [Strict rules](https://github.com/boehringer-ingelheim/eslint-config/blob/master/src/configs/strict.ts): `src/configs/strict.ts`
- [Local rules](https://github.com/boehringer-ingelheim/eslint-config/blob/master/src/configs/local.ts): `src/configs/local.ts`
- [Naming convention](https://github.com/boehringer-ingelheim/eslint-config/blob/master/src/configs/experimental-naming-convention.ts): `src/configs/experimental-naming-convention.ts`
- [Prettier disable](https://github.com/boehringer-ingelheim/eslint-config/blob/master/src/configs/prettier-disable.ts): `src/configs/prettier-disable.ts`

### Framework Presets

- [React preset](https://github.com/boehringer-ingelheim/eslint-config/blob/master/src/configs/react.ts): `src/configs/react.ts`
- [Next.js preset](https://github.com/boehringer-ingelheim/eslint-config/blob/master/src/configs/nextjs.ts): `src/configs/nextjs.ts`
- [Playwright preset](https://github.com/boehringer-ingelheim/eslint-config/blob/master/src/configs/playwright.ts): `src/configs/playwright.ts`

### Configuration Helpers

- [Ignore-file helper](https://github.com/boehringer-ingelheim/eslint-config/blob/master/src/lib/include-ignore-file.ts): `src/lib/include-ignore-file.ts`
- [Sorting settings](https://github.com/boehringer-ingelheim/eslint-config/blob/master/src/lib/eslint-plugin-perfectionist.ts): `src/lib/eslint-plugin-perfectionist.ts`
- [Routing file names](https://github.com/boehringer-ingelheim/eslint-config/blob/master/src/lib/nextjs.utils.ts): `src/lib/nextjs.utils.ts`
- [Config constants](https://github.com/boehringer-ingelheim/eslint-config/blob/master/src/lib/constants.ts): `src/lib/constants.ts`

### Other components

- **Project maintainer**
- **ESLint**

## Connections

- Project maintainer → Config exports: imports package (evidence: `README.md`)
- Config exports → Base rules: exports (evidence: `src/main.ts`)
- Config exports → Strict rules: exports (evidence: `src/main.ts`)
- Config exports → Local rules: exports (evidence: `src/main.ts`)
- Config exports → Naming convention: exports (evidence: `src/main.ts`)
- Config exports → Prettier disable: exports (evidence: `src/main.ts`)
- Config exports → React preset: exports (evidence: `src/main.ts`)
- Config exports → Next.js preset: exports (evidence: `src/main.ts`)
- Config exports → Playwright preset: exports (evidence: `src/main.ts`)
- Config exports → Ignore-file helper: exports (evidence: `src/main.ts`)
- Project maintainer → ESLint: runs lint (evidence: `README.md`)
- ESLint → Base rules: applies rules (evidence: `README.md`)
- Base rules → ESLint: configures (evidence: `src/configs/base.ts`)
- Strict rules → Base rules: extends (evidence: `src/configs/strict.ts`)
- React preset → Base rules: extends (evidence: `src/configs/react.ts`)
- Next.js preset → React preset: extends (evidence: `src/configs/nextjs.ts`)
- Base rules → Sorting settings: uses settings (evidence: `src/configs/base.ts`)
- React preset → Sorting settings: uses settings (evidence: `src/configs/react.ts`)
- Base rules → Config constants: uses globs (evidence: `src/configs/base.ts`)
- Next.js preset → Routing file names: uses names (evidence: `src/configs/nextjs.ts`)
- Config exports → Ignore-file helper: exports helper (evidence: `src/main.ts`)
