# eslint-config-problems

> An eslint config that catches problems in your code, without checking style. For use with prettier.

Latest version **10.0.1** (published 2026-04-09) · ISC license · 0 weekly downloads

## Install

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

## Health

**Score 45/100 (D)** — status: active.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

## Facts

| | |
|---|---|
| Version | 10.0.1 |
| Published | 2026-04-09 |
| First published | 2017-07-08 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 6.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Ryan Zimmerman |
| Maintainers | ryanzim |
| Keywords | eslint, eslint-config, eslintconfig, formatting, prettier |

## Links

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

## Dependencies (1)

- [@eslint/js](https://npm.io/package/@eslint/js.md) ^10.0.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

- 10.0.1 (latest) — 2026-04-09
- 10.0.0 — 2026-04-09
- 9.0.0 — 2025-01-25
- 8.0.0 — 2023-05-18
- 7.0.1 — 2022-10-10
- 7.0.0 — 2022-10-10
- 6.0.0 — 2021-11-16
- 5.0.0 — 2020-08-25
- 4.0.0 — 2020-01-30
- 3.1.0 — 2019-12-31
- 3.0.1 — 2019-05-24
- 3.0.0 — 2019-05-23
- 2.0.0 — 2018-12-05
- 1.1.0 — 2018-07-18
- 1.0.0 — 2018-06-23
- … 5 more at https://npm.io/package/eslint-config-problems/versions

## README

# eslint-config-problems

`eslint-config-problems` is an [ESLint](http://eslint.org/) config that doesn't regulate your code style. It only catches actual problems with your code.

It's designed for use with [Prettier](https://prettier.io/), the opinionated code formatter.

## Contents

<!-- START doctoc generated TOC please keep comment here to allow auto update -->
<!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE -->

- [Rules](#rules)
  - [I disagree with rule X; you missed rule Y](#i-disagree-with-rule-x-you-missed-rule-y)
- [Installation & Usage](#installation--usage)
- [License](#license)

<!-- END doctoc generated TOC please keep comment here to allow auto update -->

## Rules

Rules were chosen based on the following criteria:

- No stylistic rules; nothing that Prettier can fix
- Prevent guaranteed runtime errors (i.e. no undefined variables)
- Disallow "evil" things like `eval`
- Disallow archaic language features like `with`
- Disallow obvious bad practices like `new Number(13)`
- Force usage of ES2015+ features
- Point out places the code could be made shorter. For example:
  ```js
  if (someCondition) return someValue;
  else {
    // Do something else
  }
  ```
  The `else` block is unneeded, since the `if` block contains a `return` statement. `eslint-config-problems` will point this out to you (or auto-fix with the `--fix` option).

### I disagree with rule X; you missed rule Y

If you disagree; feel free to open an issue. I'm open to changing rules if you have a good reason.

If I missed a rule that prevents an actual problem or is otherwise in keeping with the general guidelines above, please open an issue as well; I just might add it.

## Installation & Usage

_`eslint-config-problems` is designed to work with ESLint v9+; if you're still using ESLint v8 or earlier, use `eslint-config-problems` v8.0.0._

---

    npm install -D eslint eslint-config-problems

In your **eslint.config.js**:

```js
import problems from 'eslint-config-problems';

export default [
  problems,
  {
    rules: {
      // custom rules
    },
  },
];
```

## License

[ISC](LICENSE)

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