Skip to content

Commit

Permalink
Bigcommerce Sass style guide - Initial Commit
Browse files Browse the repository at this point in the history
  • Loading branch information
Miko Ademagic committed Nov 6, 2015
0 parents commit defbc2a
Show file tree
Hide file tree
Showing 4 changed files with 1,154 additions and 0 deletions.
53 changes: 53 additions & 0 deletions .scss-lint.yml
@@ -0,0 +1,53 @@
# BC configuration
linters:

#Cos we use maps with keywords, this produces noise
ColorKeyword:
enabled: false

ElsePlacement:
enabled: true
style: new_line # or 'same_line'

EmptyLineBetweenBlocks:
enabled: true
ignore_single_line_blocks: false

Indentation:
enabled: true
character: space # or 'tab'
width: 4

LeadingZero:
enabled: true
style: include_zero # or 'exclude_zero'

NameFormat:
enabled: false
convention: hyphenated_lowercase # or 'BEM', or a regex pattern

SelectorDepth:
enabled: true
max_depth: 2

NestingDepth:
enabled: true
max_depth: 2

# For example
# http://www.regexr.com/39qql
SelectorFormat:
enabled: true
# convention: camel_case # or 'snake_case', or 'hyphenated_lowercase', or a regex pattern
convention: ^[a-z][a-z0-9]*([A-Z0-9][a-z0-9]*)*((\.is-|-+)[a-z0-9][a-z0-9]*([A-Z0-9][a-z0-9]*)*)*$

StringQuotes:
enabled: true
style: double_quotes # or single_quotes

TrailingZero:
enabled: true

# This is a new linting rule as of 0.30 and the per-file disablement syntax seems to failing, so turn it off
QualifyingElement:
enabled: false
4 changes: 4 additions & 0 deletions Gemfile
@@ -0,0 +1,4 @@
source 'https://rubygems.org'

gem 'sass', '3.4.7'
gem 'scss-lint', '~> 0.31.0'

0 comments on commit defbc2a

Please sign in to comment.