# types-eslintrc

> Type checking for .eslintrc.json

Latest version **3.1.0** (published 2026-03-11) · MIT license · 0 weekly downloads

## Install

```sh
npm install types-eslintrc
pnpm add types-eslintrc
yarn add types-eslintrc
bun add types-eslintrc
```

## Health

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

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

Warnings: low downloads.

## Facts

| | |
|---|---|
| Version | 3.1.0 |
| Published | 2026-03-11 |
| First published | 2020-09-19 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Node | >=20.0.0 |
| Dependencies | 2 |
| Unpacked size | 28.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Provenance | attested (GitHub Actions) |
| GitHub stars | 3 |
| Author | Connor White |
| Maintainers | bconnorwhite |
| Keywords | eslint, eslintrc, config, json, types, type, check, guard, guards, ts, tsc, config, typescript, .eslintrc.json, eslintrc.json |

## Links

- npm: https://www.npmjs.com/package/types-eslintrc
- Repository: https://github.com/bconnorwhite/types-eslintrc
- Homepage: https://github.bconnorwhite.com/types-eslintrc#readme
- Issues: https://github.com/bconnorwhite/types-eslintrc/issues
- npm.io page: https://npm.io/package/types-eslintrc

## Dependencies (2)

- [zod](https://npm.io/package/zod.md) ^3.20.2
- [types-json](https://npm.io/package/types-json.md) ^5.0.0

## Alternatives

- [@mapbox/jsonlint-lines-primitives](https://npm.io/package/@mapbox/jsonlint-lines-primitives.md) — 5.3M weekly downloads
- [reftools](https://npm.io/package/reftools.md) — 3.5M weekly downloads
- [@hey-api/openapi-ts](https://npm.io/package/@hey-api/openapi-ts.md) — 3.5M weekly downloads
- [@mapbox/geojson-rewind](https://npm.io/package/@mapbox/geojson-rewind.md) — 2.4M weekly downloads
- [turbo-stream](https://npm.io/package/turbo-stream.md) — 1.7M weekly downloads

## Recent versions

- 3.1.0 (latest) — 2026-03-11
- 3.0.0 — 2026-03-11
- 2.0.0 — 2023-01-11
- 1.0.3 — 2020-10-07
- 1.0.2 — 2020-09-19
- 1.0.1 — 2020-09-19
- 1.0.0 — 2020-09-19

## README

<!--BEGIN HEADER-->
<div id="top" align="center">
  <h1>types-eslintrc</h1>
  <a href="https://npmjs.com/package/types-eslintrc">
    <img alt="NPM" src="https://img.shields.io/npm/v/types-eslintrc.svg">
  </a>
  <a href="https://github.com/bconnorwhite/types-eslintrc">
    <img alt="TypeScript" src="https://img.shields.io/github/languages/top/bconnorwhite/types-eslintrc.svg">
  </a>
</div>

<br />

<blockquote align="center">Type checking for .eslintrc.json.</blockquote>

---
<!--END HEADER-->

<!-- BEGIN INSTALLATION -->
## Installation

<details open>
  <summary>
    <a href="https://www.npmjs.com/package/types-eslintrc">
      <img src="https://img.shields.io/badge/npm-CB3837?logo=npm&logoColor=white" alt="NPM" />
    </a>
  </summary>

```sh
npm install types-eslintrc
```

</details>

<details>
  <summary>
    <a href="https://yarnpkg.com/package/types-eslintrc">
      <img src="https://img.shields.io/badge/yarn-2C8EBB?logo=yarn&logoColor=white" alt="Yarn" />
    </a>
  </summary>

```sh
yarn add types-eslintrc
```

</details>

<details>
  <summary>
    <img src="https://img.shields.io/badge/pnpm-F69220?logo=pnpm&logoColor=white" alt="PNPM" />
  </summary>

```sh
pnpm add types-eslintrc
```

</details>

<details>
  <summary>
    <img src="https://img.shields.io/badge/bun-EE81C3?logo=bun&logoColor=white" alt="Bun" />
  </summary>

```sh
bun add types-eslintrc
```

</details>
<!-- END INSTALLATION -->

This package uses [zod](https://www.npmjs.com/package/zod) to type check ESLint configs.

## Usage

### Types

```ts
import {
  ESLintConfig,
  isESLintConfig,
  parseESLintConfig
} from "types-eslintrc";

const myConfig = {
  // ...
};

if(isESLintConfig(myConfig)) {
  // myConfig is now typed as ESLintConfig
}

const myConfig = parseESLintConfig(myConfig);
// If myConfig is valid, it will return as ESLintConfig. Otherwise, it will return undefined.
```

<br />

<!--BEGIN FOOTER-->
<h2 id="dependencies">Dependencies<a href="https://www.npmjs.com/package/types-eslintrc?activeTab=dependencies"><img align="right" alt="dependencies" src="https://img.shields.io/librariesio/release/npm/types-eslintrc.svg"></a></h2>

- [types-json](https://www.npmjs.com/package/types-json): Type checking for JSON values
- [zod](https://www.npmjs.com/package/zod): TypeScript-first schema declaration and validation library with static type inference

<h2 id="license">License <a href="https://opensource.org/licenses/MIT"><img align="right" alt="license" src="https://img.shields.io/npm/l/types-eslintrc.svg"></a></h2>

[MIT](https://opensource.org/licenses/MIT) - _MIT License_
<!--END FOOTER-->

## Related Projects

- [types-json](https://www.npmjs.com/package/types-json): Type checking for JSON objects
- [types-tsconfig](https://www.npmjs.com/package/types-tsconfig): Type checking for tsconfig.json
- [types-pkg-json](https://www.npmjs.com/package/types-pkg-json): Type checking for package.json

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