简体   繁体   中英

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:

在此处输入图像描述

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:

在此处输入图像描述

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

Thank you

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM