Have sass-lint ignore a certain line?

前端 未结 4 726

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 17:59

    Disabling linting rules for specific lines is supported as of sass-lint 1.10.

    https://github.com/sasstools/sass-lint#disabling-linters-via-source

    As yet sass-lint does not support disabling rules on a per-file or per-line basis. They have a long-standing GitHub issue tracking the feature.

提交回复
热议问题