Skip to main content

recommended

Enable both primary workflows in eslint-plugin-stylelint-2:

  • run the Stylelint bridge from ESLint for stylesheet files
  • enforce the broadly useful Stylelint configuration-authoring rules in config modules

Use this preset when you want the default rollout path without opting into every operational or repository-specific Stylelint config preference.

recommended intentionally leaves out the more opinionated policy rules around cache defaults, formatter defaults, autofix defaults, global ignore globs, disable-comment bypasses, and global default severity.

Flat config exampleโ€‹

import stylelint2 from "eslint-plugin-stylelint-2";

export default [
...stylelint2.configs.recommended,
];

What this preset includesโ€‹

  • The Stylelint bridge rule (stylelint)
  • High-signal configuration policy rules for common production usage

What this preset does not includeโ€‹

  • The full strict policy surface from all
  • Configuration-only mode semantics from configuration

Rules in this presetโ€‹

For the exhaustive generated rule matrix, see Presets overview.

RuleFix
stylelint๐Ÿ”ง
prefer-stylelint-define-config๐Ÿ”ง
prefer-stylelint-report-descriptionless-disables๐Ÿ”ง
prefer-stylelint-report-invalid-scope-disables๐Ÿ”ง
prefer-stylelint-report-needless-disables๐Ÿ”ง
prefer-stylelint-report-unscoped-disables๐Ÿ”ง