Added a Sass lint file to the project with some basic rules set

This commit is contained in:
Gregory Ballantine 2018-04-10 23:34:23 -04:00
parent e00d33e9fd
commit e76a49c4f3

50
.sass-lint.yml Normal file
View File

@ -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