Registry / testing / eslint-config-stylelint

eslint-config-stylelint

JSON →
library27.0.0jsnpmunverified

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.

testing
Install & Compatibility
Where this runs
tested against v? · npm install
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
node 18226 runs
build_error
glibc
node 18226 runs
build_error
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

ESM-only since v26; CommonJS require will fail. Use the default export directly.

import stylelintConfig from 'eslint-config-stylelint'

The Jest config is a subpath export; use default import (no braces). Also ESM-only.

import stylelintJestConfig from 'eslint-config-stylelint/jest'

ESLint flat config requires export default; CommonJS module.exports will not work. Spread the config arrays.

export default [...stylelintConfig, ...stylelintJestConfig]

Shows installation and usage for ESLint flat config with and without Jest support.

// Install: npm install eslint-config-stylelint eslint --save-dev import stylelintConfig from 'eslint-config-stylelint'; import stylelintJestConfig from 'eslint-config-stylelint/jest'; export default [ ...stylelintConfig, ...stylelintJestConfig, ];
Debug
Known footguns
breakingDropped ESLint 9.x support and Node.js <20.19.0 support.
breakingBecame a pure ESM package, breaking CommonJS require.
breakingDropped ESLint 8.x and Node.js <18.18 support.
deprecatedNo-confusing-arrow rule removed in v22.
gotchaJest config requires a separate subpath import, not part of main config.
Upgrade
Version history

Breaking-change detection hasn't run for this library yet.

Audit
Security & dependencies

CVE tracking and dependency tree are planned for a later release.

Agent activity
9 hits · last 30 days
gptbot
4
ahrefsbot
4
script
1
Resources