# @lcooper/eslint-config

> Shareable config for ESLint

Latest version **3.1.1** (published 2025-04-06) · MIT license · 0 weekly downloads

## Install

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

## Health

**Score 40/100 (D)** — status: maintenance-mode.

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

Warnings: low downloads.

Negative: stale; low maintenance score.

## Facts

| | |
|---|---|
| Version | 3.1.1 |
| Published | 2025-04-06 |
| First published | 2019-12-13 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Node | ^18.18.0 \|\| ^20.9.0 \|\| >=21.1.0 |
| Dependencies | 7 |
| Unpacked size | 32.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Lucian Cooper |
| Maintainers | lcooper |
| Keywords | eslint, eslintconfig |

## Links

- npm: https://www.npmjs.com/package/@lcooper/eslint-config
- Repository: https://github.com/luciancooper/eslint-configs
- Homepage: https://github.com/luciancooper/eslint-configs/tree/main/packages/eslint-config#readme
- Issues: https://github.com/luciancooper/eslint-configs/issues
- npm.io page: https://npm.io/package/@lcooper/eslint-config

## Dependencies (7)

- [globals](https://npm.io/package/globals.md) ^14.0.0
- [eslint-plugin-jsdoc](https://npm.io/package/eslint-plugin-jsdoc.md) ^50.6.9
- [eslint-plugin-import](https://npm.io/package/eslint-plugin-import.md) ^2.31.0
- [@lcooper/eslint-plugin](https://npm.io/package/@lcooper/eslint-plugin.md) ^1.5.1
- [eslint-config-airbnb-base](https://npm.io/package/eslint-config-airbnb-base.md) ^15.0.0
- [@stylistic/eslint-plugin-js](https://npm.io/package/@stylistic/eslint-plugin-js.md) ^3.1.0
- [@stylistic/eslint-plugin-plus](https://npm.io/package/@stylistic/eslint-plugin-plus.md) ^3.1.0

## 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
- [@inrupt/eslint-config-base](https://npm.io/package/@inrupt/eslint-config-base.md) — 4.5K weekly downloads

## Recent versions

- 3.1.1 (latest) — 2025-04-06
- 3.1.0 — 2025-04-02
- 3.0.0 — 2024-03-27
- 2.2.2 — 2023-01-27
- 2.2.1 — 2022-01-04
- 2.2.0 — 2021-10-13
- 2.1.2 — 2021-08-09
- 2.1.1 — 2021-06-29
- 2.1.0 — 2021-06-18
- 2.0.1 — 2021-06-17
- 2.0.0 — 2021-06-17
- 1.2.0 — 2021-03-04
- 1.1.4 — 2021-02-12
- 1.1.3 — 2020-12-10
- 1.1.2 — 2020-11-11
- … 3 more at https://npm.io/package/@lcooper/eslint-config/versions

## README

# @lcooper/eslint-config

[![npm](https://img.shields.io/npm/v/@lcooper/eslint-config?logo=npm&style=for-the-badge)](https://www.npmjs.com/package/@lcooper/eslint-config)
[![ci](https://img.shields.io/github/actions/workflow/status/luciancooper/eslint-configs/ci.yml?logo=github&style=for-the-badge)](https://github.com/luciancooper/eslint-configs/actions/workflows/ci.yml)
[![license](https://img.shields.io/github/license/luciancooper/eslint-configs?color=yellow&style=for-the-badge)](#license)

An ESlint [shareable flat config](https://eslint.org/docs/latest/use/configure/configuration-files-new) that extends [`eslint-config-airbnb-base`](https://www.npmjs.com/package/eslint-config-airbnb-base).

## Installation

The peer dependency [`eslint`](https://www.npmjs.com/package/eslint) must be installed alongside this package.

> install with npm:
```bash
npm install -D eslint @lcooper/eslint-config
```

> install with yarn:
```bash
yarn add -D eslint @lcooper/eslint-config
```

> Note: This project requires Eslint version `>=9.3`, and NodeJS version `^18.18.0 || ^20.9.0 || >=21.1.0`.

## Usage

Add an `eslint.config.js` config file to your project's root directory:

```js
import config from '@lcooper/eslint-config';

export default [
    ...config,
];
```

If your project does not specify `"type": "module"` in its `package.json` file, then `eslint.config.js` must be in CommonJS format:

```js
const config = require('@lcooper/eslint-config');

module.exports = [
    ...config,
];
```

To add browser globals for browser environments, import additional configuration from `@lcooper/eslint-config/envs`.

```js
import config from '@lcooper/eslint-config';
import { browser } from '@lcooper/eslint-config/envs';

export default [
    ...config,
    browser,
];
```

This project is no longer compatable with the legacy eslintrc format, and requires you use the flat config format. Check out [this page](https://eslint.org/docs/latest/use/configure/migration-guide) for more details about migrating from the eslintrc format to the flat config format.

## Related

 * [`@lcooper/eslint-plugin`](../eslint-plugin) - Plugin with awesome extra ESLint rules used by this config
 * [`@lcooper/eslint-config-react`](../eslint-config-react) - Enhancement config for React projects
 * [`@lcooper/eslint-config-typescript`](../eslint-config-typescript) - Base config for TypeScript projects
 * [`@lcooper/eslint-config-typescript-react`](../eslint-config-typescript-react) - Enhancement config for React projects that use TypeScript
 * [`@lcooper/eslint-config-jest`](../eslint-config-jest) - Enhancement config for projects using Jest

## License

[MIT](../../LICENSE)

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