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 9133529 commit 8ad78b6
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
11 changes: 11 additions & 0 deletions lib/declaration-block.js
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,17 @@ module.exports = {
'font-weight'
]
},
{
order: 'strict',
emptyLineBefore: 'always',
properties: [
'hanging-punctuation',
'hyphens',
'letter-spacing',
'line-break',
'line-height'
]
},
{
order: 'strict',
emptyLineBefore: 'always',
Expand Down
4 changes: 2 additions & 2 deletions test/sample.scss
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@
font-family: 'Times New Roman', 'Times', serif;
font-weight: bold;

line-height: 0.5;

top: calc(1rem + 2rem);
bottom: 1rem;

line-height: 0.5;

transform: translate(1, 1) scale(3);
}

Expand Down

0 comments on commit 8ad78b6

Please sign in to comment.