---
name: stylelint
description: "Use when adopting Stylelint to assess this standard: Validate stylesheet declarations"
---

# Apply Stylelint

Configure a syntax-aware ruleset for the stylesheet dialect. Catch invalid declarations and conflicting conventions in the same files that the build ships.

## Procedure

1. Inspect the repository configuration and identify the files or targets covered by Stylelint.
2. Use Stylelint in this repository to meet this standard: Validate stylesheet declarations. Configure a syntax-aware ruleset for the stylesheet dialect. Catch invalid declarations and conflicting conventions in the same files that the build ships. Inspect the repository configuration, record the baseline and exact reproduction steps, then add the smallest repeatable check that detects a regression.
3. Record the tool version, configuration, scope and findings. Explain any checks that could not run.
4. Use the same invocation after changes and compare the evidence against the baseline.

Refer to [the upstream documentation](https://stylelint.io/) for configuration and prerequisites.
