> ## Documentation Index
> Fetch the complete documentation index at: https://docs.coderabbit.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Stylelint

> CodeRabbit's guide to Stylelint.

[Stylelint](https://stylelint.io/) is a linter for stylesheets that helps avoid errors and enforce conventions in CSS, SCSS, Sass, Less, SugarSS, and Stylus.

## Files

Stylelint runs on files with the following extensions:

* `.css`
* `.scss`
* `.sass`
* `.less`
* `.sss` (SugarSS)
* `.styl` (Stylus)

## Configuration

* **Allowed config files**: Only data-only config files are used. CodeRabbit looks for `.stylelintrc.json`, `.stylelintrc.yml`, or `.stylelintrc.yaml`. Executable configs (`.stylelintrc.js`, `stylelint.config.js`, `stylelint.config.mjs`) are **not** allowed.
* **No user config**: If no allowed config is found, CodeRabbit writes a default `.stylelintrc.json` that extends `stylelint-config-standard-scss` and disables some stylistic rules (e.g. `selector-class-pattern`, `color-hex-length`, `rule-empty-line-before`) to reduce noise. Plugin and `extends` resolution uses only packages we ship in the image.

## Links

* [Stylelint Documentation](https://stylelint.io/user-guide/get-started/)
* [Stylelint GitHub](https://github.com/stylelint/stylelint)
