【发布时间】:2016-09-03 12:50:31
【问题描述】:
我尝试使用 stylelint 来检查我的 SASS 文件。当我设置规则时
"indentation": "tab"
stylelint 抛出下一个错误
2:1 ✖ Expected indentation of 1 tab indentation
3:1 ✖ Expected indentation of 1 tab indentation
5:1 ✖ Expected indentation of 1 tab indentation
8:3 ✖ Expected indentation of 1 tab indentation
11:3 ✖ Expected indentation of 1 tab indentation
14:3 ✖ Expected indentation of 1 tab indentation
....
如何正确检查缩进?
更新: 样式的顶部:
@import "theme/bootstrap"
@import "theme/bootstrap-theme"
@import "theme/theme"
@keyframes hide-notifi
0%
top: 0
75%
top: 0
100%
top: -100%
【问题讨论】:
-
您能否将您的 SCSS 代码的第 2 到 5 行添加到问题中?
标签: css sass coding-style stylesheet stylelint