Atom Beautify SCSS禁用无单位归零

时间:2019-11-11 10:26:52

标签: atom-editor atom-beautify

由于IE11的“单位”需要为零,因此我尝试设置Atom Beautify来美化我的SCSS,而不会从零值中删除“单位”。

例如:

.element {
  flex: 1 1 0px; // 0px for IE
}

将被美化为

.element {
  flex: 1 1 0; // 0px for IE
}

有人知道如何阻止Atom Beautify从零值中删除单位吗?

我的SCSS在Atom config.cson中针对Atom Beautify的规则:

"atom-beautify":
  scss:
    beautify_on_save: true
    convert_quotes: "single"
    length_zero_no_unit: false
    newline_between_rules: false
    no_lead_zero: true
    preserve_newlines: true

谢谢。

0 个答案:

没有答案