Have sass-lint ignore a certain line?

前端 未结 4 723

I\'m using sass-lint with Gulp. How can I disable warnings for a particular style in my sass from the lint console output?

I\'ve found a similar question but I

4条回答
  •  执笔经年
    2021-02-03 18:12

    Gotcha.

    First, here's the listing of rules for sass-lint:

    https://github.com/sasstools/sass-lint/tree/develop/lib/rules

    Next, you can set an option for the rule you want:

    rule:
        severity: 0
    

    0 = nothing written

    1 = warning

    2 = error

    Is this what you needed?

提交回复
热议问题