eslint-config-problems
raw JSON →An ESLint shareable config that focuses on catching actual code problems without enforcing code style, designed for seamless use with Prettier. Current stable version is 10.0.1, released in 2025. This package is actively maintained and follows ESLint major versions: v8, v9, and now v10. It includes rules like no-unassigned-vars, preserve-caught-error, no-promise-executor-return, and others that prevent runtime errors, disallow bad practices (eval, with, new Number), and encourage shorter code. It is style-agnostic, meaning it does not include any stylistic rules, making it ideal for teams using Prettier. Alternatives like eslint-config-standard or eslint-config-airbnb include style rules that may conflict with Prettier. The config is ESM-only since v9 and exports a flat config object for ESLint v9+.
Common errors
error Error [ERR_REQUIRE_ESM]: require() of ES Module /path/to/node_modules/eslint-config-problems/index.js not supported. ↓
error Configuration for rule "no-unused-vars" is invalid: Value "warn" is not a valid severity. ↓
error ESLint couldn't find the config "problems" after extending. ↓
Warnings
breaking ESLint v10 compatibility: eslint-config-problems v10 requires eslint ^10.0.0. Using with eslint v9 will fail. ↓
breaking Flat config required: v9+ of this package only supports ESLint flat config (eslint.config.js). The old .eslintrc files are not supported. ↓
breaking ESM-only: v9+ of this package is ESM-only and cannot be used with require(). Attempting require will throw a ModuleNotFoundError. ↓
gotcha No stylistic rules: This config intentionally omits all formatting rules. Ensure you use Prettier separately for formatting. ↓
Install
npm install eslint-config-problems yarn add eslint-config-problems pnpm add eslint-config-problems Imports
- problems (default) wrong
const problems = require('eslint-config-problems')correctimport problems from 'eslint-config-problems' - problems (default) in eslint.config.js wrong
module.exports = problemscorrectexport default [ problems, { rules: {...} } ]; - problems (default) in .eslintrc (deprecated) wrong
// .eslintrc.json: { "extends": "problems" }correctimport problems from 'eslint-config-problems'; export default [ problems ];
Quickstart
npm install -D eslint eslint-config-problems
// eslint.config.js
import problems from 'eslint-config-problems';
export default [
problems,
{
rules: {
'no-console': 'warn',
},
},
];