Overview
eslint-plugin-stylelint-2 is built for teams that want Stylelint and ESLint to cooperate cleanly.
- Bridge Stylelint into ESLint so style diagnostics and autofixes can flow through your existing ESLint pipeline.
- Enforce maintainable Stylelint config authoring so your Stylelint configuration stays predictable, reviewable, and automation-friendly.
If you only care about bridge behavior, start with:
If you also want strict configuration hygiene, start with:
recommendedpreset- then progressively adopt stricter config-focused rules from the main rule catalog
How this rules documentation is organizedโ
The Rules docs section is intentionally split by decision-making flow:
- Guides (you are here) for adoption strategy and practical setup.
- Presets for curated rule sets (reference).
- Rule catalog for per-rule details and examples (catalog).
Pick a pathโ
Path A โ "Just run Stylelint from ESLint"โ
Use this if your main goal is unified lint execution in CI/editor:
- Follow Getting Started.
- Enable
stylelintOnly. - Tune the
stylelintrule options if needed.
Path B โ "Also standardize config quality"โ
Use this if you want consistent stylelint config shape across repos:
- Start with
recommended. - Review Config Authoring.
- Tighten with additional rule-level policies from Rule Catalog.
Path C โ "Need details before enabling"โ
If you are evaluating behavior or migration risk:
- Read Stylelint Bridge.
- Skim FAQ.
- Validate on a small target package first.
Quick mapโ
Recommended first steps (practical)โ
- Enable one preset (
stylelintOnlyorrecommended) and run lint once. - Apply autofixes and inspect diff quality in a PR.
- Add config policy rules gradually (not all at once) to reduce noisy rollouts.
- Lock in conventions via CI and editor integration.