configuration
Enable only the full Stylelint configuration-authoring workflow.
Use this preset when you want to lint stylelint.config.* and .stylelintrc.* files for config hygiene, but you do not want the stylesheet bridge, source CSS linting, or Stylelint autofix bridging enabled in the same preset.
Flat config exampleโ
import stylelint2 from "eslint-plugin-stylelint-2";
export default [
stylelint2.configs.configuration,
];
Legacy alias:
stylelint2.configs.configsremains supported for backwards compatibility.
What this preset includesโ
Configuration-focused policy rules only. See the canonical rules table below for the exact preset contents.
What this preset does not includeโ
- No CSS
stylelint-2/stylelintbridge rule - No stylesheet linting for
**/*.css - No Stylelint autofix bridge for source CSS files
Related preset docsโ
Rules in this presetโ
For the exhaustive generated rule matrix, see Presets overview.