是否可以扩展 .scss-lint.yml 配置文件

Is it possible to extend a .scss-lint.yml config file

是否有支持的语法来扩展 .scss-lint.yml 配置文件,就像扩展 .jshintrc 配置文件一样?

我的目标是从节点包中提取所有配置文件。 所以 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