Skip to content

Instantly share code, notes, and snippets.

@BryanBarrera
Created May 11, 2019 01:15
Show Gist options
  • Save BryanBarrera/f5592b34096c09ea99f1a13c29ed60fe to your computer and use it in GitHub Desktop.
Save BryanBarrera/f5592b34096c09ea99f1a13c29ed60fe to your computer and use it in GitHub Desktop.
.sasslintrc Example File
{
"options": {
"merge-default-rules": false,
"formatter": "html",
"output-file": "linters/sass-lint.html",
"max-warnings": 50
},
"files": {
"include": "src/scss/*/*.s+(a|c)ss",
"ignore": [
"src/scss/vendor/**/*.*"
]
},
"rules": {
"no-trailing-whitespace": 2,
"extends-before-mixins": 2,
"extends-before-declarations": 2,
"placeholder-in-extend": 2,
"no-warn": 1,
"no-debug": 1,
"no-important": 2,
"space-after-colon": [
2,
{
"include": "true"
}
],
"empty-line-between-blocks": [
2,
{
"include": "true",
"allow-single-line-rulesets": "true"
}
],
"final-newline": [
1,
{
"include": "true"
}
],
"hex-notation": [
2,
{
"style": "lowercase"
}
],
"indentation": [
2,
{
"size": 2
}
],
"quotes": [
2,
{
"style": "double"
}
],
"property-sort-order": [
2,
{
"order": "concentric",
"ignore-custom-properties": true
}
]
}
}
@BryanBarrera
Copy link
Author

For some reason github does not keep the indents in properly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment