Use Stylelint

Using Stylelint helps prevent errors and keeps code in a consistent format.

Status
accepted
Date
Contributors
Adam Varn, Andrew Berry, Andy Blum, Aubrey Sambor, Chris DeLuca, Morgan Eck, Pauline Judge
Topics
front-end css

Decision

Use Stylelint plugin to lint all non-vendored styles. Use the stylelint-config-standard package for CSS, or the stylelint-config-standard-scss for SASS. Add minimal rule overrides as necessary to adhere to project guidelines.

Consequences

  • CSS code will have less errors
  • CSS code will be more consistently formatted
  • Developers will have to adhere to the stylelint's code constraints

Search Decisions