# @pretty-cozy/eslint-config

> A pretty cozy collection of eslint configs

Latest version **0.10.0** (published 2026-08-07) · MIT license · 0 weekly downloads

## Install

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

## Health

**Score 70/100 (B)** — status: active.

Positive: has types; esm support; no vulnerabilities; has provenance; recently updated; high maintenance score.

Warnings: low downloads; pre 1.0.

## Facts

| | |
|---|---|
| Version | 0.10.0 |
| Published | 2026-08-07 |
| First published | 2023-04-01 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 18 |
| Unpacked size | 32.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Provenance | attested (GitHub Actions) |
| GitHub stars | 0 |
| Author | Pretty Coffee |
| Maintainers | prettycoffee |

## Links

- npm: https://www.npmjs.com/package/@pretty-cozy/eslint-config
- Repository: https://github.com/PrettyCoffee/pretty-cozy
- Issues: https://github.com/PrettyCoffee/pretty-cozy/issues/new
- npm.io page: https://npm.io/package/@pretty-cozy/eslint-config

## Dependencies (18)

- [globals](https://npm.io/package/globals.md) ^16.5.0
- [prettier](https://npm.io/package/prettier.md) ^3.8.3
- [@eslint/js](https://npm.io/package/@eslint/js.md) ^9.39.4
- [typescript-eslint](https://npm.io/package/typescript-eslint.md) ^8.58.2
- [eslint-plugin-react](https://npm.io/package/eslint-plugin-react.md) ^7.37.5
- [@vitest/eslint-plugin](https://npm.io/package/@vitest/eslint-plugin.md) ^1.6.16
- [eslint-plugin-sonarjs](https://npm.io/package/eslint-plugin-sonarjs.md) ^3.0.7
- [eslint-plugin-unicorn](https://npm.io/package/eslint-plugin-unicorn.md) ^62.0.0
- [eslint-config-prettier](https://npm.io/package/eslint-config-prettier.md) ^10.1.8
- [eslint-plugin-import-x](https://npm.io/package/eslint-plugin-import-x.md) ^4.16.2
- [eslint-plugin-jsx-a11y](https://npm.io/package/eslint-plugin-jsx-a11y.md) ^6.10.2
- [eslint-plugin-prettier](https://npm.io/package/eslint-plugin-prettier.md) ^5.5.5
- [@typescript-eslint/parser](https://npm.io/package/@typescript-eslint/parser.md) ^8.58.2
- [eslint-plugin-react-hooks](https://npm.io/package/eslint-plugin-react-hooks.md) ^7.0.1
- [eslint-plugin-unused-imports](https://npm.io/package/eslint-plugin-unused-imports.md) ^4.4.1
- [@typescript-eslint/eslint-plugin](https://npm.io/package/@typescript-eslint/eslint-plugin.md) ^8.58.2
- [eslint-plugin-better-tailwindcss](https://npm.io/package/eslint-plugin-better-tailwindcss.md) ^4.4.1
- [eslint-import-resolver-typescript](https://npm.io/package/eslint-import-resolver-typescript.md) ^4.4.4

## Recent versions

- 0.10.0 (latest) — 2026-08-07
- 0.9.0-alpha.5 (alpha) — 2026-01-29
- 0.9.0 — 2026-03-14
- 0.8.0 — 2026-02-03
- 0.9.0-alpha.3 — 2025-07-22
- 0.9.0-alpha.2 — 2025-07-20
- 0.9.0-alpha.1 — 2025-07-20
- 0.9.0-alpha.0 — 2025-07-19
- 0.7.1 — 2025-03-26
- 0.7.0 — 2025-03-26
- 0.7.0-alpha.2 — 2025-03-24
- 0.7.0-alpha.0 — 2025-03-23
- 0.6.0-alpha.0 — 2025-03-23
- 0.6.0 — 2025-03-03
- 0.5.1 — 2025-01-19
- … 11 more at https://npm.io/package/@pretty-cozy/eslint-config/versions

## README

# @pretty-cozy/eslint-config

A pretty cozy collection of eslint rules.

## Available configs

| config name | description                                   |
| ----------- | --------------------------------------------- |
| `baseJs`    | General config without a specific usage scope |
| `baseTs`    | Extends `baseJs` with typescript support      |
| `react`     | React specific rule set                       |
| `preact`    | Preact specific rule set                      |
| `prettier`  | Enables prettier for eslint.                  |
| `tailwind`  | Tailwind css specific rule set                |

## Setup

1. Install `eslint` and the package
   ```bash
   npm i -D eslint @pretty-cozy/eslint-config
   ```
2. Add an `eslint.config.mjs` file at the root directory of your project for configuration.
   ```js
   import prettyCozy from "@pretty-cozy/eslint-config"
   import { defineConfig } from "eslint/config"

   export default defineConfig(
     prettyCozy.baseTs,
     prettyCozy.react,
     {
       // your additional configuration
     },
     prettyCozy.prettier,
   )
   ```
3. Add npm scripts to your `package.json`:
   ```json
   "scripts": {
     "lint": "eslint src",
     "lint:fix": "npm run lint -- --fix"
   }
   ```

## Usage

You can use eslint by executing the created scripts:

```bash
# Lint your code and print the result
npm run lint

# Autofix linter problems where possible
npm run lint:fix
```

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