# eslint-config-k8

> ESLint v.9/10 Config for React App

Latest version **1.6.1** (published 2026-07-06) · MIT license · 0 weekly downloads

## Install

```sh
npm install eslint-config-k8
pnpm add eslint-config-k8
yarn add eslint-config-k8
bun add eslint-config-k8
```

## Health

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

Positive: esm support; no vulnerabilities.

Warnings: low downloads; no types.

## Facts

| | |
|---|---|
| Version | 1.6.1 |
| Published | 2026-07-06 |
| First published | 2023-05-21 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Dependencies | 0 |
| Unpacked size | 23.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Maintainers | k8stack |
| Keywords | eslint |

## Links

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

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

- 1.6.1 (latest) — 2026-07-06
- 1.6.0 — 2026-06-11
- 1.5.4 — 2026-05-27
- 1.5.2 — 2026-05-17
- 1.5.1 — 2026-05-13
- 1.5.0 — 2026-02-10
- 1.4.5 — 2026-01-12
- 1.4.4 — 2026-01-11
- 1.4.3 — 2025-12-31
- 1.4.2 — 2025-12-31
- 1.4.1 — 2025-12-31
- 1.4.0 — 2025-12-21
- 1.3.15 — 2025-11-13
- 1.3.14 — 2025-11-10
- 1.3.13 — 2025-11-10
- … 32 more at https://npm.io/package/eslint-config-k8/versions

## README

# eslint-config-k8

[![npm version](https://img.shields.io/npm/v/eslint-config-k8)](https://www.npmjs.com/package/eslint-config-k8)
[![license](https://img.shields.io/npm/l/eslint-config-k8)](https://github.com/kirilenko/eslint-config-k8/blob/main/LICENSE)

Opinionated ESLint flat config for TypeScript React apps. Includes rules for imports, hooks ordering, object sorting, and strict TypeScript checks.

---

### Peer dependencies

| Package | Version |
| --- | --- |
| `eslint` | `>=9.36.0` |
| `@eslint/js` | `>=9.36.0` |
| `typescript-eslint` | `^8.45.0` |
| `globals` | `^17.0.0` |
| `eslint-plugin-react` | `^7.37.5` |
| `eslint-plugin-react-hooks` | `^7.0.1` |
| `eslint-plugin-react-refresh` | `^0.4.22` |
| `eslint-plugin-import` | `^2.32.0` |
| `eslint-import-resolver-typescript` | `^4.4.4` |
| `eslint-plugin-simple-import-sort` | `^13.0.0` |
| `eslint-plugin-perfectionist` | `^5.0.0` |
| `eslint-plugin-hooks` | `^0.4.3` |

### Installation

```bash
pnpm add -D eslint-config-k8 \
  eslint \
  @eslint/js \
  typescript-eslint \
  globals \
  eslint-plugin-react \
  eslint-plugin-react-hooks \
  eslint-plugin-react-refresh \
  eslint-plugin-import \
  eslint-import-resolver-typescript \
  eslint-plugin-simple-import-sort \
  eslint-plugin-perfectionist \
  eslint-plugin-hooks
```

### Usage

Create an `eslint.config.js` (or `eslint.config.mjs`) at the root of your project:

```js
import { defineConfig } from 'eslint/config'
import eslintConfigK8 from 'eslint-config-k8'

export default defineConfig([{ extends: [eslintConfigK8] }])
```

To extend or override rules:

```js
import { defineConfig } from 'eslint/config'
import eslintConfigK8 from 'eslint-config-k8'

export default defineConfig([
  { extends: [eslintConfigK8] },
  {
    rules: {
      'no-console': 'off',
      '@typescript-eslint/no-explicit-any': 'warn',
    },
  },
])
```

### What's included

- **TypeScript** — strict rules via `typescript-eslint` (`no-unsafe-*`, `no-floating-promises`, `prefer-nullish-coalescing`, etc.)
- **React** — recommended rules + JSX runtime + react-refresh
- **Imports** — sorted and grouped via `eslint-plugin-simple-import-sort` and `eslint-plugin-import`
- **Hooks ordering** — enforced call order via `eslint-plugin-hooks`
- **Object sorting** — alphabetical key order via `eslint-plugin-perfectionist`
- **Path restrictions** — `src/lib` is prevented from importing `src/modules`

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