Skip to content

Commit

Permalink
feat(mixin): add mixins and common placeholders
Browse files Browse the repository at this point in the history
  • Loading branch information
Pablo Roiback committed Nov 30, 2017
1 parent 9f89a4d commit ea81fc8
Show file tree
Hide file tree
Showing 3 changed files with 89 additions and 0 deletions.
81 changes: 81 additions & 0 deletions .scss-lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,81 @@
severity: error

files:
include:
- 'src/**/*.s+(a|c)ss'
ignore:
- 'node_modules/**/*.s+(a|c)ss'
- 'test/**/*.s+(a|c)ss'

rules:
indentation:
- 2
-
size: 4

class-name-format:
- 1
- convention: '([a-z0-9_]+-?)+'

mixin-name-format:
- 1
- convention: '([a-z0-9_]+-?)+'

placeholder-name-format:
- 1
- convention: '([a-z0-9_]+-?)+'

variable-name-format:
- 1
- convention: '([a-z0-9]+-?)+'

space-before-brace:
- 2

no-important:
- 2

linters:

BorderZero:
enabled: true
convention: zero

BemDepth:
enabled: true

DeclarationOrder:
enabled: false

ExtendDirective:
enabled: true

LeadingZero:
enabled: false

NameFormat:
enabled: true

PrivateNamingConvention:
enabled: true
prefix: _

PropertySortOrder:
enabled: false

QualifyingElement:
enabled: false

SelectorFormat:
enabled: true
convention: hyphenated_BEM
class_convention: ^(?!js-).*
class_convention_explanation: should not be written in the form js-*

SingleLinePerProperty:
enabled: true
allow_single_line_rule_sets: false

StringQuotes:
enabled: true
style: double_quotes
5 changes: 5 additions & 0 deletions src/dynamic/libs/_common.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
%background-cover {
background-position: 50% 50%;
background-repeat: no-repeat;
background-size: cover;
}
3 changes: 3 additions & 0 deletions src/dynamic/libs/_overs.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
%hover-theme--duke {
display: block;
}

0 comments on commit ea81fc8

Please sign in to comment.