Skip to content

Instantly share code, notes, and snippets.

@cjstewart88
Created September 5, 2016 13:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cjstewart88/d243de971b306c7330c8b3abb942c2f0 to your computer and use it in GitHub Desktop.
Save cjstewart88/d243de971b306c7330c8b3abb942c2f0 to your computer and use it in GitHub Desktop.
CallRail's Sass Lint Config
options:
formatter: stylish
files:
include: 'src/scss/**/*.s+(a|c)ss'
rules:
# Extends
extends-before-mixins: 2
extends-before-declarations: 2
placeholder-in-extend: 2
# Mixins
mixins-before-declarations: 0
# Line Spacing
one-declaration-per-line: 2
empty-line-between-blocks: 2
single-line-per-selector: 0
# Disallows
no-color-keywords: 2
no-color-literals: 0
no-css-comments: 0
no-debug: 2
no-duplicate-properties: 2
no-empty-rulesets: 2
no-extends: 0
no-ids: 2
no-important: 0
no-invalid-hex: 2
no-mergeable-selectors: 0
no-misspelled-properties: 2
no-qualifying-elements: 0
no-trailing-whitespace: 2
no-trailing-zero: 2
no-transition-all: 2
no-url-protocols: 2
no-vendor-prefixes: 0
no-warn: 2
property-units: 0
# Nesting
force-attribute-nesting: 0
force-element-nesting: 0
force-pseudo-nesting: 0
# Name Formats
class-name-format: 2
function-name-format: 2
id-name-format: 0
mixin-name-format: 2
placeholder-name-format: 2
variable-name-format: 2
# Style Guide
bem-depth: 0
border-zero: 0
brace-style: 2
clean-import-paths: 2
empty-args: 2
hex-length: 0
hex-notation: 2
indentation: 2
leading-zero: 0
nesting-depth: 0
property-sort-order: 0
quotes: 0
shorthand-values: 0
url-quotes: 2
variable-for-property: 2
zero-unit: 0
# Inner Spacing
space-after-comma: 2
space-before-colon: 2
space-after-colon: 2
space-before-brace: 2
space-before-bang: 2
space-after-bang: 2
space-between-parens: 2
space-around-operator: 0
# Final Items
trailing-semicolon: 2
final-newline: 2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment