ChromaticHQ / calliope

An opinionated yet extensible toolset to handle common front-end tasks
3 stars 0 forks source link

Stylesheet partials are not linted #6

Closed agarzola closed 2 years ago

agarzola commented 2 years ago

Description

While writing the documentation changes in #5, I realized that the lint task does not lint stylesheet partials, only the main stylesheets.

To Reproduce

  1. Clone the latest master branch of the chromatic.com repo.
  2. Open any of the SCSS partials inside the web/themes/chromatic/src/components/ directory.
  3. Modify the partial to in such a way that should cause a linting error (e.g. removing a blank line between an @include statement and a block of rules).
  4. Run yarn lint from the web/themes/chromatic/ directory.
  5. Confirm that no errors are reported to the console.

Expected Behavior

I expect Calliope to lint not only the entry files declared as the SCSS source, but also the partials that live inside the src/components/ directory.

Screenshots

image

Additional context

n/a