能否扩展.scss-lint.yml配置文件?

问题描述 投票:2回答:2

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

我的目标是从node包中提取所有的配置文件,所以一个jshint看起来像这样。

{
  "extends": "./node_modules/npm-package-name/shared/.jshintrc",
  "browser": true
}

我不知道如何拉出一个scss -lint文件。

sass lint config-files
2个回答
0
投票

到目前为止,这是不可能的。一个变通的办法是创建一个指向scss-lint文件的符号链接。

ln -s path/to/symlink/filename filename

0
投票

是的,它可以通过 config-file 设置。

例如:

options:
  config-file: ./node_modules/@my-shared-repo/configuration/sass-lint.yml
  convention: hyphenatedbem
rules:
  class-name-format: 1
© www.soinside.com 2019 - 2024. All rights reserved.