Decision Use Stylelint

accepted

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

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