diff options
author | connorshea <connor.james.shea@gmail.com> | 2016-03-11 22:33:43 +0300 |
---|---|---|
committer | connorshea <connor.james.shea@gmail.com> | 2016-03-15 05:33:54 +0300 |
commit | 8d8b457cebdfd0790157cd54fd1f24e46fbf0785 (patch) | |
tree | 6d2dcd25e28c5347e17d36cbcaad49364f68bc9a /lib/tasks/scss-lint.rake | |
parent | 3ed8a8e52cc0df6ee085bd545dc3061f240d7826 (diff) |
Add SCSS Lint, CSSComb config file, run SCSS Lint in GitLab CI, add documentation for SCSS Style Guide.
See !3069 for more information.
Diffstat (limited to 'lib/tasks/scss-lint.rake')
-rw-r--r-- | lib/tasks/scss-lint.rake | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/lib/tasks/scss-lint.rake b/lib/tasks/scss-lint.rake new file mode 100644 index 00000000000..250fd8699e4 --- /dev/null +++ b/lib/tasks/scss-lint.rake @@ -0,0 +1,10 @@ +unless Rails.env.production? + require 'scss_lint/rake_task' + + SCSSLint::RakeTask.new do |t| + t.config = '.scss-lint.yml' + # See https://github.com/brigade/scss-lint/issues/726 + # Hack, otherwise linter won't respect scss_files option in config file. + t.files = [] + end +end |