有没有支持的语法来扩展.scss-lint.yml配置文件,就像扩展.jshintrc配置文件一样?
我的目标是从node包中提取所有的配置文件,所以一个jshint看起来像这样。
{
"extends": "./node_modules/npm-package-name/shared/.jshintrc",
"browser": true
}
我不知道如何拉出一个scss -lint文件。
到目前为止,这是不可能的。一个变通的办法是创建一个指向scss-lint文件的符号链接。
ln -s path/to/symlink/filename filename
是的,它可以通过 config-file
设置。
options:
config-file: ./node_modules/@my-shared-repo/configuration/sass-lint.yml
convention: hyphenatedbem
rules:
class-name-format: 1