diff --git a/.stylelintrc.yml b/.stylelintrc.yml index 3e33322feb..4a6f2610f6 100644 --- a/.stylelintrc.yml +++ b/.stylelintrc.yml @@ -4,6 +4,10 @@ ignoreFiles: src/govuk/vendor/**/* plugins: - stylelint-order rules: + # Stop use of hsl() and hsla() + # Orignates from https://github.com/alphagov/govuk-frontend/blob/2f73bd6d639db10c61d3b0da6f79f08150a4e530/config/.sass-lint.yml#L153 + function-disallowed-list: ["hsl", "hsla"] + # Require all class selectors to be in a hyphenated BEM format and limit the BEM depth to 0 # https://stylelint.io/user-guide/rules/selector-class-pattern # Originates from: https://github.com/alphagov/govuk-frontend/blob/e248b4027102b2684f592a0501630075bdfa1fab/config/.sass-lint.yml#L39