# eslint-config-sweet

> ESLint shareable config for the most sweet-ass JavaScript and TypeScript. 🤙🏼

Latest version **33.0.0** (published 2026-06-06) · MIT license · 0 weekly downloads

## Install

```sh
npm install eslint-config-sweet
pnpm add eslint-config-sweet
yarn add eslint-config-sweet
bun add eslint-config-sweet
```

## Health

**Score 55/100 (C)** — status: active.

Positive: has types; esm support; no vulnerabilities.

Warnings: low downloads.

## Facts

| | |
|---|---|
| Version | 33.0.0 |
| Published | 2026-06-06 |
| First published | 2020-02-18 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM |
| Dependencies | 7 |
| Unpacked size | 12.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Robin Löffel |
| Maintainers | rbnlffl |
| Keywords | eslint-config |

## Links

- npm: https://www.npmjs.com/package/eslint-config-sweet
- Repository: https://github.com/robinloeffel/eslint-config-sweet
- Homepage: https://github.com/robinloeffel/eslint-config-sweet#readme
- Issues: https://github.com/robinloeffel/eslint-config-sweet/issues
- npm.io page: https://npm.io/package/eslint-config-sweet

## Dependencies (7)

- [@eslint/js](https://npm.io/package/@eslint/js.md) ^10.0.1
- [typescript-eslint](https://npm.io/package/typescript-eslint.md) ^8.60.0
- [@e18e/eslint-plugin](https://npm.io/package/@e18e/eslint-plugin.md) ^0.5.0
- [eslint-plugin-sonarjs](https://npm.io/package/eslint-plugin-sonarjs.md) ^4.0.3
- [eslint-plugin-unicorn](https://npm.io/package/eslint-plugin-unicorn.md) ^64.0.0
- [@stylistic/eslint-plugin](https://npm.io/package/@stylistic/eslint-plugin.md) ^5.10.0
- [eslint-plugin-no-unsanitized](https://npm.io/package/eslint-plugin-no-unsanitized.md) ^4.1.5

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

- 33.0.0 (latest) — 2026-06-06
- 32.0.0 — 2026-03-30
- 31.0.0 — 2026-01-23
- 30.0.0 — 2025-11-22
- 29.0.0 — 2025-09-06
- 28.0.0 — 2025-07-21
- 27.0.0 — 2025-07-07
- 26.0.0 — 2025-05-16
- 25.0.0 — 2025-03-21
- 24.0.0 — 2025-02-21
- 23.0.2 — 2025-02-16
- 23.0.1 — 2025-02-08
- 23.0.0 — 2025-02-08
- 22.1.3 — 2025-01-07
- 22.1.2 — 2024-12-18
- … 51 more at https://npm.io/package/eslint-config-sweet/versions

## README

# eslint-config-sweet

[![latest version](https://npmx.dev/api/registry/badge/version/eslint-config-sweet)](https://npmx.dev/eslint-config-sweet)
[![npm downloads](https://npmx.dev/api/registry/badge/downloads/eslint-config-sweet)](https://npmx.dev/eslint-config-sweet)
[![typescript types](https://npmx.dev/api/registry/badge/types/eslint-config-sweet)](https://npmx.dev/eslint-config-sweet)
[![license](https://npmx.dev/api/registry/badge/license/eslint-config-sweet)](https://npmx.dev/eslint-config-sweet)

> ESLint [shareable config](https://eslint.org/docs/developer-guide/shareable-configs.html) for the most sweet-ass JavaScript and TypeScript. 🤙🏼

## Installation

```console
npm i -D eslint typescript eslint-config-sweet
```

## Usage

To use the package, follow the ESLint docs about [integrating shareable configs](https://eslint.org/docs/latest/use/configure/configuration-files#using-a-shareable-configuration-package).

```js
import { defineConfig } from "eslint/config";
import sweet from "eslint-config-sweet";

export default defineConfig(sweet);
```

## Pro Tip for VS Code

To make your experience even better, Microsoft has added a rad feature to VS Code that makes cleaning up `import` and `export` statements a breeze! Go to your user settings via `⌘ + ⇧ + p`, then type `user json`, and hit enter. Add `"source.organizeImports": "explicit"` to `"editor.codeActionsOnSave"` as seen [here in the VS Code docs](https://code.visualstudio.com/docs/typescript/typescript-refactoring#_code-actions-on-save), and save that bad boy.

Boom, VS Code will now automatically remove unused `import`s and `export`s, as well as sort them for ya! 🤙🏼

## How will my code look when using this?

Sweet, man. That's the point. On a more serious note though: It mostly, enforces consistency, even though it may not look like it the first few moments. It will make your code feel more lightweight and nudge you towards using more modern APIs and good practices, while maintaining readability and keeping complexity down.

## Nice to know

`sweet` may clash with your [Prettier](https://prettier.io/) setup. If you want to use both side-by-side, there's [`eslint-config-prettier`](https://github.com/prettier/eslint-config-prettier). It turns off cosmetic rules from [`eslint-stylistic`](https://github.com/eslint-stylistic/eslint-stylistic), [`typescript-eslint`](https://github.com/typescript-eslint/typescript-eslint), and [`eslint-plugin-unicorn`](https://github.com/sindresorhus/eslint-plugin-unicorn), which are all part of this package.

## License

[MIT](https://opensource.org/license/MIT)

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