Skip to content

Instantly share code, notes, and snippets.

@chestone
Last active August 29, 2015 14:04
Show Gist options
  • Save chestone/d8441138cbeb1d1f8228 to your computer and use it in GitHub Desktop.
Save chestone/d8441138cbeb1d1f8228 to your computer and use it in GitHub Desktop.
scss-lint.yml
---
linters:
BorderZero: # border : 0 is preferred over border: none
enabled: false
CapitalizationInSelector: # all class names should be in lowercase
enabled: false
ColorKeyword: # use color in hex rather than name
enabled: false
DeclarationOrder: #Rule sets should start with @extend declarations, followed by properties and nested rule sets, in that order
enabled: true
ElsePlacement: # @else should be placed on same line as previous curly brace
enabled: false
EmptyLineBetweenBlocks: # Rule declaration should be preceded by an empty line
enabled: false
FinalNewline: # Files should end with a trailing newline
enabled: false
HexNotation: # Color `#721B09` should be written as `#721b09`
enabled: true
Indentation: # Line should be indented 2 spaces, but was indented 4 spaces
enabled: true
LeadingZero: # `0.18` should be written without a leading zero as `.18`
enabled: false
NameFormat: # Name of placeholder `block-list__link` should be written in lowercase with hyphens instead of underscores
enabled: false
PropertySortOrder: # Properties should be sorted in order, with vendor-prefixed extensions before the standardized CSS property
enabled: false
SelectorDepth: # Selector should have depth of applicability no greater than 3, but was 4
enabled: true
SingleLinePerSelector: # Each selector in a comma sequence should be on its own line
enabled: true
SpaceAfterComma: # Commas in function arguments should be followed by a single space
enabled: false
SpaceAfterPropertyColon: # Colon after property should be followed by one space
enabled: true
SpaceBeforeBrace: # Opening curly brace `{` should be preceded by one space
enabled: true
SpaceBetweenParens: # Expected 0 spaces between parentheses instead of 1
enabled: false
StringQuotes: # Prefer single quoted strings
enabled: false
TrailingSemicolon: # Declaration should not have a space before the terminating semicolon
enabled: false
UnnecessaryParentReference: # Unnecessary parent selector (&)
enabled: false
ZeroUnit: # `0px` should be written without units as `0`
enabled: true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment