Skip to content

Instantly share code, notes, and snippets.

@SebAshton
Created July 16, 2014 08:24
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save SebAshton/44e10511346b3dd8be4c to your computer and use it in GitHub Desktop.
Save SebAshton/44e10511346b3dd8be4c to your computer and use it in GitHub Desktop.
SCSS Lint config example
# https://github.com/causes/scss-lint/tree/master/lib/scss_lint/linter
exclude: 'app/assets/stylesheets/settings/*'
linters:
BorderZero:
enabled: true
ColorKeyword:
enabled: false
Comment:
enabled: false
Compass::*:
enabled: true
DeclarationOrder:
enabled: true
DuplicateProperty:
enabled: true
ElsePlacement:
enabled: true
style: same_line
EmptyLineBetweenBlocks:
enabled: true
ignore_single_line_blocks: true
EmptyRule:
enabled: true
FinalNewline:
enabled: true
present: true
HexLength:
enabled: true
style: short
HexNotation:
enabled: true
style: uppercase
HexValidation:
enabled: true
IdWithExtraneousSelector:
enabled: true
Indentation:
enabled: true
width: 2
LeadingZero:
enabled: true
MergeableSelector:
enabled: true
NameFormat:
enabled: true
convention: BEM
PlaceholderInExtend:
enabled: true
PropertySortOrder:
enabled: true
order: nil
PropertySpelling:
enabled: true
SelectorDepth:
enabled: true
max_depth: 3
Shorthand:
enabled: true
SingleLinePerSelector:
enabled: true
SpaceAfterComma:
enabled: true
SpaceAfterPropertyColon:
enabled: true
SpaceAfterPropertyName:
enabled: true
SpaceBeforeBrace:
enabled: true
SpaceBetweenParens:
enabled: true
StringQuotes:
enabled: false
TrailingSemicolonAfterPropertyValue:
enabled: true
UnnecessaryMantissa:
enabled: true
UrlFormat:
enabled: true
UrlQuotes:
enabled: true
ZeroUnit:
enabled: true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment