문제

I want to suppress various kind of useless linter error reports, e.g. lacks "content" attribute. So I tried experimenting with setting the options in SublimeLinter.sublime-settings:

    "linters": {
        "htmltidy": {
            "@disable": false,
            "args": [-xxx true],
            "excludes": []
        }
    },

and so on and they don't seem to do anything. Am I doing something wrong?

도움이 되었습니까?

해결책

The settings file is a JSON file, and it looks like your edits are not valid JSON. Try putting quotes around the args, either:

"args": ["-xxx true"]

or

"args": ["-xxx", "true"]

다른 팁

This worked for me:

"linters": {
    "htmltidy": {
        "@disable": false,
        "args": [
            //http://tidy.sourceforge.net/docs/quickref.html
            "--drop-proprietary-attributes", "false"
        ],
        "excludes": []
    }...
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top