简体   繁体   中英

sass-lint.yml disabled rules are showing as “info”s rather than absent

I've placed a sass-lint.yml file in my project to get rid of some of the pesky errors that are thrown. As I add rules I can see that sass-lint is observing them becasue the ignored errors are showing as blue info icons rather than yellow warning icons. Also the green style error underline remains. How can I make these go away instead? The image below should give you an idea of what I'm describing.

在此处输入图片说明

Apparently you have to set defaults to 0 , 1 , or 2 rather than false . like this:

indentation: 
  - 0
empty-line-between-blocks: 
  - 0
property-sort-order: 
  - 0

Where:

  • 0 turns it off
  • 1 sets it as a warning
  • 2 sets it to an error

在此处输入图片说明

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM