Having scss-lint ignore a particular line

coffee-grinder picture coffee-grinder · Sep 29, 2015 · Viewed 17.4k times · Source

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;  // sass-lint: ignore
}

Answer

steveax picture steveax · Sep 29, 2015

Yep, see the docs on disabling linters via source

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