A strict, opinionated ESLint configuration for JavaScript projects, maintained by mourner. The current stable version is 4.1.0, released in early 2025. It migrated to ESLint's flat config format in v4, removing deprecated rules and incorporating @stylistic/plugin for code style. Compared to alternatives like airbnb or standard, this config is designed to be comprehensive yet easy to adopt incrementally, with automatic fixes supported. Release cadence is irregular, with major version bumps for breaking config changes.
npm install eslint-config-mournerVerified import paths — ran on the pinned version, not inferred.
Shows how to import the flat config and add project-specific rule overrides in ESLint 9+.
Upgrade ESLint to 9+. Create an eslint.config.js file with `import config from 'eslint-config-mourner'` and export an array.
If you need Node.js rules, install and configure eslint-plugin-n separately.
Update @stylistic/plugin to v5 in your package.json: `npm install @stylistic/plugin@latest`.
Always use `export default [...config, { ... }]` instead of `export default { ...config, ... }`.Run `npm install eslint-config-mourner` and ensure it's listed in package.json dependencies.
Switch to flat config format. Create eslint.config.js as an ESM module exporting an array.
Upgrade ESLint to version 9: `npm install eslint@latest`.