jsonmacossublimetext3sublimelintercsslint

How to override "Selectors should not contain IDs" rule in SublimeLinter-CSSLint?


Entering csslint --list-rules into the terminal, I see the following rule:

ids
  Selectors should not contain IDs.

So, in my SublimeLinter.sublime-settings user prefs file, I've tried setting "ids" to false, true, "none", "ignore", "exclude", and "" in the below code structure, but to no effect.

{
  "user": {
    "linters": {
      "csslint": {
        "ids": /* WHAT TO PUT HERE? */
      }
    }
  }
}

I'm not easily finding documentation for how to calibrate the ids settings. Anyone know? Thanks!


Solution

  • I'm not sure if this is the way it's meant to be instead, but I found a solution by adding "ids" to the linter's "ignored" property, rather than by tuning an "ids" property itself:

    {
      "user": {
        "linters": {
          "csslint": {
            "ignored": ["ids"]
          }
        }
      }
    }