diff --git a/app/assets/stylesheets/components/cookie-message.scss b/app/assets/stylesheets/components/cookie-message.scss index f72132ab5..28684d611 100644 --- a/app/assets/stylesheets/components/cookie-message.scss +++ b/app/assets/stylesheets/components/cookie-message.scss @@ -1,6 +1,5 @@ // GOV.UK Publishing components cookie banner styles // https://github.com/alphagov/govuk_publishing_components/blob/master/app/assets/stylesheets/govuk_publishing_components/components/_cookie-banner.scss -// sass-lint:disable mixins-before-declarations // component uses .govuk-body and .govuk-button classes from govuk-frontend @import 'core/typography'; diff --git a/gulpfile.js b/gulpfile.js index d8e8686d9..aef452c39 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -259,7 +259,8 @@ const lint = { paths.src + 'stylesheets/views/*.scss', ]) .pipe(plugins.sassLint({ - 'options': { 'formatter': 'stylish' } + 'options': { 'formatter': 'stylish' }, + 'rules': { 'mixins-before-declarations': [2, { 'exclude': ['media', 'govuk-media-query'] } ] } })) .pipe(plugins.sassLint.format()) .pipe(plugins.sassLint.failOnError());