0

我正在尝试在项目中使用 autoprefixer。我将缩进设置为 2 个空格,将最大行长度设置为 80 个字符。问题是这两种设置在某些情况下似乎相互冲突。假设我有:

@mixin do-something($value, $otherValue, $anotherValue,
    $yetAnotherValue) {
  border-bottom: ...

这里的警告说它期望第二行有 0 个缩进空间:

 2:5  ✖  Expected indentation of 0 spaces     indentation

有没有办法让 stylelint 忽略这些情况。类似于“在声明类(或mixin)后忽略缩进缩进”之类的东西?

4

1 回答 1

1

看看这个https://stylelint.io/user-guide/configuration/#turning-rules-off-from-within-your-css可能是你的情况。

于 2017-05-17T10:12:32.770 回答