Skip to content

Commit

Permalink
feat: add more declaration block rules
Browse files Browse the repository at this point in the history
  • Loading branch information
rodoabad committed Apr 4, 2016
1 parent 2c0ae2b commit 9133529
Show file tree
Hide file tree
Showing 2 changed files with 58 additions and 9 deletions.
65 changes: 56 additions & 9 deletions lib/declaration-block.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,61 @@ module.exports = {
order: 'strict',
emptyLineBefore: 'always',
properties: [
'color',
'background'
'color'
]
},
{
order: 'strict',
emptyLineBefore: 'always',
properties: [
'background',
'background-attachment',
'background-clip',
'background-color',
'background-image',
'background-origin',
'background-position',
'background-poistion-x',
'background-poistion-y',
'background-repeat',
'background-size'
]
},
{
order: 'strict',
emptyLineBefore: 'always',
properties: [
'border',
'border-color',
'border-image',
'border-image-outset',
'border-image-repeat',
'border-image-slice',
'border-image-source',
'border-image-width',
'border-radius',
'border-style',
'border-width',
'border-top',
'border-top-color',
'border-top-left-radius',
'border-top-right-radius',
'border-top-style',
'border-top-width',
'border-right',
'border-right-color',
'border-right-style',
'border-right-width',
'border-bottom',
'border-bottom-color',
'border-bottom-left-radius',
'border-bottom-right-radius',
'border-bottom-style',
'border-bottom-width',
'border-left',
'border-left-color',
'border-left-style',
'border-left-width'
]
},
{
Expand Down Expand Up @@ -63,13 +116,7 @@ module.exports = {
'top',
'right',
'bottom',
'left',
'clear',
'display',
'float',
'position',
'visibility',
'z-index'
'left'
]
},
{
Expand Down
2 changes: 2 additions & 0 deletions test/sample.scss
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

.moo {
color: white;

background: #ffa;

font-family: 'Times New Roman', 'Times', serif;
Expand Down Expand Up @@ -77,5 +78,6 @@

.alpha {
color: black;

background: red;
}

0 comments on commit 9133529

Please sign in to comment.