stylelintOnly
Enable only the stylesheet-facing Stylelint bridge workflow.
This preset is the clearest choice when you want Stylelint diagnostics and autofixes to flow through ESLint, but you do not want any Stylelint config-authoring rules in the same preset.
Flat config exampleโ
import stylelint2 from "eslint-plugin-stylelint-2";
export default [
stylelint2.configs.stylelintOnly,
];
Legacy alias:
stylelint2.configs.stylesheetsremains supported for backwards compatibility.
What this preset includesโ
- The bridge rule only:
stylelint
What this preset does not includeโ
- Configuration-authoring policy rules (
require-*,disallow-*,sort-*) - Operational policy rules like
prefer-stylelint-cacheand reporting preferences
Related preset docsโ
Rules in this presetโ
| Rule | Fix |
|---|---|
stylelint | ๐ง |