# @4s1/eslint-config

> ESLint and Prettier config

Latest version **9.3.0** (published 2026-02-17) · MIT license · 0 weekly downloads

> **Deprecated.** This package is deprecated.

## Install

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

## Health

**Score 10/100 (F)** — status: deprecated.

Negative: deprecated.

## Facts

| | |
|---|---|
| Version | 9.3.0 |
| Published | 2026-02-17 |
| First published | 2021-12-15 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Dependencies | 3 |
| Unpacked size | 5.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Steffen |
| Maintainers | steffen-4s1, bot-4s1 |
| Keywords | eslint, prettier, 4s1 |

## Links

- npm: https://www.npmjs.com/package/@4s1/eslint-config
- Repository: https://codeberg.org/4s1/eslint-config
- Issues: https://codeberg.org/4s1/eslint-config/issues
- npm.io page: https://npm.io/package/@4s1/eslint-config

## Dependencies (3)

- [@eslint/js](https://npm.io/package/@eslint/js.md) ^10.0.1
- [typescript-eslint](https://npm.io/package/typescript-eslint.md) ^8.56.0
- [eslint-config-prettier](https://npm.io/package/eslint-config-prettier.md) ^10.1.8

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

- 9.3.0 (latest) — 2026-02-17
- 9.2.0 — 2026-02-05
- 9.1.0 — 2025-08-31
- 9.0.0 — 2025-03-11
- 8.3.0 — 2025-03-03
- 8.2.0 — 2024-12-13
- 8.1.0 — 2024-10-18
- 8.0.0 — 2024-07-25
- 7.7.0 — 2024-07-04
- 7.6.0 — 2024-04-07
- 7.5.0 — 2024-03-12
- 7.4.0 — 2023-12-28
- 7.3.0 — 2023-12-01
- 7.2.0 — 2023-10-29
- 7.1.1 — 2023-07-18
- … 40 more at https://npm.io/package/@4s1/eslint-config/versions

## README

# ESLint and Prettier Config

These are settings for [ESLint](https://eslint.org/) and [Prettier](https://prettier.io/).

## Setup

Add ESLint, Prettier and configuration packages to your project:

```bash
# pnpm
pnpm add eslint prettier @4s1/eslint-config -D
# npm
npm install eslint prettier @4s1/eslint-config -D
```

Add scripts for linting into `package.json`:

```bash
npm pkg set scripts.lint="eslint src/ && prettier --check ."
npm pkg set scripts.lint:fix="eslint --fix src/ && prettier --write ."
```

### ESLint config

Create a `eslint.config.mjs` file in your project root folder and add reference to the configuration:

```bash
echo "import customConfig from \"@4s1/eslint-config/eslint.config.mjs\";" > eslint.config.mjs
echo "" >> eslint.config.mjs
echo "export default customConfig;" >> eslint.config.mjs
```

### Prettier config

Add prettier configuration into `package.json`:

```bash
npm pkg set prettier="@4s1/eslint-config"
```

Add script command into `package.json` to run prettier:

```bash
npm pkg set scripts.format="prettier --write ."
```

Create a `.prettierignore` file in your project root folder and add some exceptions:

```bash
echo "/coverage/" > .prettierignore
echo "/dist/" >> .prettierignore
echo "/pnpm-lock.yaml" >> .prettierignore
echo "/package-lock.json" >> .prettierignore
```

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