Skip to content

Instantly share code, notes, and snippets.

@chestone
Last active August 29, 2015 14:04
Show Gist options
  • Save chestone/967a31727042d5bec38a to your computer and use it in GitHub Desktop.
Save chestone/967a31727042d5bec38a to your computer and use it in GitHub Desktop.
Annotated SCSS-lint config file describing options
---
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: false
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: false
Indentation: # Line should be indented 2 spaces, but was indented 4 spaces
enabled: false
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: false
SingleLinePerSelector: # Each selector in a comma sequence should be on its own line
enabled: false
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: false
SpaceBeforeBrace: # Opening curly brace `{` should be preceded by one space
enabled: false
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: false
@sds
Copy link

sds commented Sep 2, 2014

These options are all documented under https://github.com/causes/scss-lint/blob/master/lib/scss_lint/linter/README.md

Also, as of scss-lint 0.26.0 the name of the linter is included in the error output.

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