Search code examples
sublimetext3sublimelinter

How to disable "do not use ids in selectors" in sublime text


In sublime text 3 with the sublimelinter plugin (linter / css) how to disable these warnings IDs and padding specifically warnings


Solution

  • .csslintrc

    CSSLint allows you to disable its rules using the .csslintrc in your project root.

    Example:

    {
        "ids": false
    }
    

    .sublimelinterrc

    The same thing can be achieved using Sublime Linter's own configuration file, which is basically making use of CSSLint's --ignore command-line parameter.

    Example:

    {
        "linters": {
            "csslint": {
              "ignore": ["ids]
            }
          }
    }