Stylelint is a linter for stylesheets that helps avoid errors and enforce conventions in CSS, SCSS, Sass, Less, SugarSS, and Stylus.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.
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.jsonthat extendsstylelint-config-standard-scssand disables some stylistic rules (e.g.selector-class-pattern,color-hex-length,rule-empty-line-before) to reduce noise. Plugin andextendsresolution uses only packages we ship in the image.