diff options
author | Takuya Noguchi <takninnovationresearch@gmail.com> | 2021-04-21 11:09:16 +0300 |
---|---|---|
committer | Takuya Noguchi <takninnovationresearch@gmail.com> | 2021-04-27 02:07:34 +0300 |
commit | 0d834b32b4ef34f05637a68cee6fe8f19160952b (patch) | |
tree | 5cb12cc5a228cfc4454cade0c53435743259c9dd /.gitlab-ci.yml | |
parent | a046523a8d49d48d9cf145e9d2f5024d5d62b8b9 (diff) |
Replace scss-lint with stylelint
Signed-off-by: Takuya Noguchi <takninnovationresearch@gmail.com>
Diffstat (limited to '.gitlab-ci.yml')
-rw-r--r-- | .gitlab-ci.yml | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index dc374beb..30a6106b 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -277,17 +277,20 @@ js_lint: - yarn prettier # -# SCSS linting +# Lint SCSS # -scss_lint: +stylelint: extends: - .rules_site_tests - - .cache_gem - - .retry + - .cache_yarn + - .yarn needs: [] stage: test script: - - bundle exec scss-lint + # Remove the first three lines so the frontmatter doesn't + # cause SCSS Lint to throw errors. Also remove ERB code. + - sed -i -E '1,3d;s/<%= .* %>//g' content/assets/stylesheets/*.scss + - yarn run stylelint **/*.scss # # Yamllint of *.yml for .gitlab-ci.yml. |