sublimetext3sublimelinter

SublimeText - CSSLint ignore alphabetical order


I'm using Sublime Text 3 and SublimeLinter CSSLint.

How can I disable the order-alphabetical warnings?

I've found this link: https://github.com/SublimeLinter/SublimeLinter-csslint/issues/15

Preferences > Package Settings > SublimeLinter > Settings.

I get this window:

enter image description here

Then what?

Someone suggested the following code:

"linters": {
    "csslint": {
        "@disable": false,
        "args": [],
        "errors": "",
        "excludes": [],
        "ignore": ["order-alphabetical"],
        "warnings": ""
    },

I've tried copying and pasting into the right hand pane (// SublimeLinter Settings - User) but I get an error message:

enter image description here

What am I doing wrong? Should I paste this into the left pane/window? Do I delete the text "// SublimeLinter Settings - User"?

Thank you


Solution

  • While Sublime Text allows comments in its JSON-like settings format, you need to make sure the rest of notation is valid. Hence, your settings should look something like this:

    {
        "linters": {
            "csslint": {
                "@disable": false,
                "args": [],
                "errors": "",
                "excludes": [],
                "ignore": ["order-alphabetical"],
                "warnings": ""
            }
        }
    }