Css 如何使用stylelint检查SASS文件中的缩进?
我尝试使用stylelint检查我的SASS文件。当我制定规则时Css 如何使用stylelint检查SASS文件中的缩进?,css,sass,coding-style,stylesheet,stylelint,Css,Sass,Coding Style,Stylesheet,Stylelint,我尝试使用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 ✖ Expect
"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
....
如何正确检查缩进
UPD:
最流行的款式:
@import "theme/bootstrap"
@import "theme/bootstrap-theme"
@import "theme/theme"
@keyframes hide-notifi
0%
top: 0
75%
top: 0
100%
top: -100%
stylelint当前与基于空格的SASS语法不兼容 引用网站: 理解类似CSS的语法:linter由PostCSS供电,因此 理解PostCSS可以解析的任何语法,包括SCSS, SugarSS和实验支持更少 您可以采用,这是一种基于空格的语法。当和相结合时,您将拥有类似于基于空格的SASS的功能 另一种选择是向PostCSS社区提供SASS解析器
或者,您可以使用支持SASS语法,但与stylelint有一组不同功能的。能否在问题中添加SCSS代码的第2行到第5行?