Skip to content

web: seal CSS modules migration with linter rules

Administrator requested to merge vb/seal-css-modules into main

Created by: valerybugakov

Context

The CSS modules migration was completed at the beginning of the month, but we didn't have time to seal it with linter rules that would allow closing the issue. This PR addresses that.

Screen Shot 2022-01-28 at 17 31 01

👆10 Global CSS files left are not meant for migration because they introduce global styles not tied to any specific React component.

Changes

  • Added new package stylelint-plugin-stylelint to the client folder.
  • Added one custom stylelint rule filenames/match-regex.
  • Enabled this rule to ban non-module SCSS files outside of designated folders.

Notes

Closes the tracking issue https://github.com/sourcegraph/sourcegraph/issues/23010. 🤩

Merge request reports

Loading