Having scss-lint ignore a particular line

前端 未结 2 772
不知归路
不知归路 2021-02-12 09:42

How do you tell scss-lint to ignore a particular line in a .scss file?

i.e. can you do something like this:

.example {
  display: block !important;  // s         


        
2条回答
  •  时光说笑
    2021-02-12 10:11

    Yep, see the docs on disabling linters via source

    // scss-lint:disable ImportantRule
    .example {
      display: block !important;
    }
    // scss-lint:enable ImportantRule
    

提交回复
热议问题