From 8ad78b69d080912f003006a1d811cd852c0727af Mon Sep 17 00:00:00 2001 From: rodoabad Date: Sun, 3 Apr 2016 19:44:39 -0500 Subject: [PATCH] feat: add more declaration block rules --- lib/declaration-block.js | 11 +++++++++++ test/sample.scss | 4 ++-- 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/lib/declaration-block.js b/lib/declaration-block.js index 5e13807..66e1aa9 100644 --- a/lib/declaration-block.js +++ b/lib/declaration-block.js @@ -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', diff --git a/test/sample.scss b/test/sample.scss index 7d30692..a4ab046 100644 --- a/test/sample.scss +++ b/test/sample.scss @@ -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); }