From e76a49c4f3f106b2d719728e91560445aac361c1 Mon Sep 17 00:00:00 2001 From: Gregory Ballantine Date: Tue, 10 Apr 2018 23:34:23 -0400 Subject: [PATCH] Added a Sass lint file to the project with some basic rules set --- .sass-lint.yml | 50 ++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 .sass-lint.yml diff --git a/.sass-lint.yml b/.sass-lint.yml new file mode 100644 index 0000000..be99089 --- /dev/null +++ b/.sass-lint.yml @@ -0,0 +1,50 @@ +# Linter Options +options: + verbose: true + no-exit: true + merge-default-rules: false + formatter: checkstyle + output-file: 'build/checkstyle.xml' + max-warnings: 50 +files: + include: 'src/sass/**/*.s+(a|c)ss' + ignore: + - 'src/sass/vendor/**/*.*' +# Rule Configuration +rules: + extends-before-mixins: 2 + extends-before-declarations: 2 + placeholder-in-extend: 2 + mixins-before-declarations: + - 2 + - + exclude: + - breakpoint + - mq + + no-warn: 1 + no-debug: 1 + no-ids: 2 + no-important: 2 + hex-notation: + - 2 + - + style: uppercase + indentation: + - 2 + - + size: 2 + property-sort-order: + - 1 + - + order: + - display + - margin + ignore-custom-properties: true + variable-for-property: + - 2 + - + properties: + - margin + - content +