Skip to content

Stylelints for duplicate selectors and using BS4 classes

Tim Zallmann requested to merge tz-gl-stylelint into master

What does this MR do?

Introduces 2 GitLab specific style linters:

stylelint-gitlab/duplicate-selectors for detecting selectors which have 1:1 the same css props + values.

stylelint-gitlab/utility-classes which checks props + values against our BS4 utility classes.

It is also easier now to run stylelint against a single file on the command line with

yarn run stylelint-file app/assets/stylesheets/pages/projects.scss

What are the relevant issue numbers?

Does this MR meet the acceptance criteria?

Edited by Tim Zallmann

Merge request reports