From e411ceab5a4106448f98e24744afca9cf32e0d55 Mon Sep 17 00:00:00 2001 From: MrTimscampi Date: Sun, 19 Jan 2020 16:05:35 +0100 Subject: [PATCH] Add CSS linting to CI --- .ci/azure-pipelines.yml | 4 ++++ .stylelintrc | 10 ---------- package.json | 1 + 3 files changed, 5 insertions(+), 10 deletions(-) diff --git a/.ci/azure-pipelines.yml b/.ci/azure-pipelines.yml index 0d6b018e07..1b16b94b62 100644 --- a/.ci/azure-pipelines.yml +++ b/.ci/azure-pipelines.yml @@ -57,3 +57,7 @@ jobs: - script: 'yarn run lint' displayName: 'Run ESLint' + + - script: | + yarn run stylelint + displayName: 'Run stylelint' diff --git a/.stylelintrc b/.stylelintrc index 5f0bc35c21..c093f6c7f9 100644 --- a/.stylelintrc +++ b/.stylelintrc @@ -60,16 +60,6 @@ "declaration-colon-newline-after": "always-multi-line", "declaration-colon-space-after": "always-single-line", "declaration-colon-space-before": "never", - "declaration-empty-line-before": [ "always", { - except: [ - "after-declaration", - "first-nested", - ], - ignore: [ - "after-comment", - "inside-single-line-block", - ], - } ], "font-family-no-duplicate-names": true, "function-calc-no-invalid": true, "function-calc-no-unspaced-operator": true, diff --git a/package.json b/package.json index ba614a3a33..1b144ea30a 100644 --- a/package.json +++ b/package.json @@ -60,6 +60,7 @@ "serve": "webpack-dev-server --config webpack.dev.js --open", "build": "webpack --config webpack.prod.js", "lint": "eslint \"src\"", + "stylelint": "stylelint src/**/*.css", "prepare": "webpack --config webpack.prod.js" } }