matype / stylefmt

stylefmt is a tool that automatically formats stylesheets.
Other
2.1k stars 89 forks source link

stylefmt ignores NULL in rules? #287

Open KayLeung opened 7 years ago

KayLeung commented 7 years ago

stylefmt ignores NULL config and always append an empty line after CSS rule.

{
 "rule-empty-line-before": null
}

the formatting function doesn't check on NULL config? https://github.com/morishitter/stylefmt/blob/master/lib/formatRules.js#L11

Testing Code: (we expected no changes in below code)

/**
 * @file
 * The .contextual.css file is intended to contain styles that override declarations
 * in the Contextual module.
 */

.views-live-preview .contextual-region-active {
  outline: medium none;
}
.views-live-preview .contextual {
  right: auto; /* LTR */
  top: auto;
}