Stylelint org's shareable ESLint config. Current stable version 27.0.0, released recently. This package enforces a consistent JavaScript style across Stylelint repositories. It has become a pure ESM package since v26, dropping Node <20.19.0 and ESLint 9.x support. Key differentiator: tailored for Stylelint development, includes Jest-specific config. Peer dependencies include eslint >=10.0.2 and eslint-plugin-jest >=29.15.0. The config extends @eslint/js and uses rules from @stylistic/eslint-plugin and eslint-plugin-regexp.
npm install eslint-config-stylelintVerified import paths — ran on the pinned version, not inferred.
Shows installation and usage for ESLint flat config with and without Jest support.
Upgrade to Node >=20.19.0 and ESLint >=10.0.2.
Convert project to ESM or use dynamic import().
Upgrade to ESLint 9+ and Node >=18.18.
Formatting rules have been deprecated; use @stylistic/eslint-plugin instead.
Import 'eslint-config-stylelint/jest' explicitly.
Replace require() with import or use dynamic import().
Ensure eslint-plugin-jest is installed and import from 'eslint-config-stylelint/jest'.
Export an array of flat config objects as shown in quickstart.