5260452
5260452

Reputation: 11610

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!

Upvotes: 2

Views: 695

Answers (1)

5260452
5260452

Reputation: 11610

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"]
      }
    }
  }
}

Upvotes: 2

Related Questions