# @kodehort/eslint-config

> A curated set of ESLint configurations that we use across our projects and can be used in your projects.

Latest version **6.0.3** (published 2024-10-11) · MIT license · 0 weekly downloads

## Install

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

## Health

**Score 30/100 (F)** — status: abandoned.

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

Warnings: low downloads.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 6.0.3 |
| Published | 2024-10-11 |
| First published | 2023-06-23 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 25 |
| Unpacked size | 120 KB |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| Author | Alistair Stead |
| Maintainers | alistairstead |
| Keywords | eslint, config, dynamic, monorepo |

## Links

- npm: https://www.npmjs.com/package/@kodehort/eslint-config
- Repository: https://github.com/kodehort/eslint-config
- Issues: https://github.com/kodehort/eslint-config/issues
- npm.io page: https://npm.io/package/@kodehort/eslint-config

## Dependencies (25)

- [glob](https://npm.io/package/glob.md) ^11.0.0
- [globals](https://npm.io/package/globals.md) ^15.11.0
- [@eslint/js](https://npm.io/package/@eslint/js.md) ^9.12.0
- [typescript](https://npm.io/package/typescript.md) ^5.6.3
- [@types/eslint](https://npm.io/package/@types/eslint.md) ^9.6.1
- [eslint-plugin-n](https://npm.io/package/eslint-plugin-n.md) ^17.11.1
- [@eslint/eslintrc](https://npm.io/package/@eslint/eslintrc.md) ^3.1.0
- [eslint-plugin-yml](https://npm.io/package/eslint-plugin-yml.md) ^1.14.0
- [typescript-eslint](https://npm.io/package/typescript-eslint.md) ^8.8.1
- [yaml-eslint-parser](https://npm.io/package/yaml-eslint-parser.md) ^1.2.3
- [eslint-plugin-astro](https://npm.io/package/eslint-plugin-astro.md) ^1.2.4
- [eslint-plugin-jsdoc](https://npm.io/package/eslint-plugin-jsdoc.md) ^50.3.1
- [eslint-plugin-jsonc](https://npm.io/package/eslint-plugin-jsonc.md) ^2.16.0
- [eslint-plugin-solid](https://npm.io/package/eslint-plugin-solid.md) ^0.14.3
- [jsonc-eslint-parser](https://npm.io/package/jsonc-eslint-parser.md) ^2.4.0
- [eslint-plugin-regexp](https://npm.io/package/eslint-plugin-regexp.md) ^2.6.0
- [@vitest/eslint-plugin](https://npm.io/package/@vitest/eslint-plugin.md) ^1.1.7
- [eslint-plugin-unicorn](https://npm.io/package/eslint-plugin-unicorn.md) ^56.0.0
- [eslint-config-prettier](https://npm.io/package/eslint-config-prettier.md) ^9.1.0
- [eslint-plugin-prettier](https://npm.io/package/eslint-plugin-prettier.md) ^5.2.1
- [eslint-plugin-security](https://npm.io/package/eslint-plugin-security.md) ^3.0.1
- [eslint-plugin-only-warn](https://npm.io/package/eslint-plugin-only-warn.md) ^1.1.0
- [@typescript-eslint/parser](https://npm.io/package/@typescript-eslint/parser.md) ^8.8.1
- [eslint-plugin-perfectionist](https://npm.io/package/eslint-plugin-perfectionist.md) ^3.8.0
- [@typescript-eslint/eslint-plugin](https://npm.io/package/@typescript-eslint/eslint-plugin.md) ^8.8.1

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

- 6.0.3 (latest) — 2024-10-11
- 6.0.2 — 2024-10-11
- 6.0.1 — 2024-10-10
- 6.0.0 — 2024-04-15
- 5.0.0 — 2024-04-10
- 4.1.2 — 2024-04-10
- 4.1.0 — 2024-04-08
- 4.0.1 — 2024-04-07
- 4.0.0 — 2024-04-06
- 3.0.1 — 2024-03-28
- 3.0.0 — 2024-03-28
- 2.2.6 — 2024-03-28
- 2.2.5 — 2024-03-28
- 2.2.4 — 2023-08-21
- 2.2.3 — 2023-08-06
- … 7 more at https://npm.io/package/@kodehort/eslint-config/versions

## README

# eslint-config

`eslint-config` is a curated set of ESLint configurations that are used across
our projects and can be used in your projects too. It includes a set of rules
that are designed to help you write clean, maintainable, and error-free code.

## Installation

```sh
npm install eslint @kodehort/eslint-config --save-dev

# or

pnpm add eslint @kodehort/eslint-config -D
```

## Usage

To use `eslint-config`, you need to extend it in your ESLint configuration file.
Here's an example `.eslintrc.cjs` file:

```javascript eslint.config.js
import { baseConfig } from '@kodehort/eslint-config'

export default [
  ...baseConfig,
  // ... Project specific configuration
]
```

## Package discovery and file resolution

The dynamic configuration will search for `package.json` files in the current or
child folders of the project. Each `packjage.json` file will be used to define a
path for the ESLint rules. The content of the file will be used to infer the
project type and setup the appropriate ESLint rules.

## Debugging the configuration

Add the following scripts entry to your `package.json` file. This will allow you
to run a command to see the resolved ESLint configuration.

```json
{
  "scripts": {
    "inspect": "eslint --inspect-config"
  }
}
```

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