Question

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?

Was it helpful?

Solution

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

OTHER TIPS

This worked for me:

"linters": {
    "htmltidy": {
        "@disable": false,
        "args": [
            //http://tidy.sourceforge.net/docs/quickref.html
            "--drop-proprietary-attributes", "false"
        ],
        "excludes": []
    }...
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top