Sublime Forum

CSS Linter not following prefs?

#1

I installed sublime linter (ST3) and a few linters.

The CSS linter is flagging a lot of “errors”, so I looked it up online and found which to disable, and then edited the prefs file like this:

"csslint": { "@disable": false, "args": ], "errors": "", "excludes": ], "ignore": "", "ignored": "ids", "box-model", "font-sizes", "unique-headings", "import", "qualified-headings", "adjoining-classes", "overqualified-elements" ], "warnings": "" },

Yet, these errors are still flagged. Am I doing it wrong?

0 Likes

#2

Hi,
there’s no such property named “ignored” that has an array as value, you have to set all classes comma separated as string in the (just above) “ignore” property.

So, instead of:

...
"ignored": 
                    "ids",
                    "box-model",
                    "font-sizes",
                    "unique-headings",
                    "import",
                    "qualified-headings",
                    "adjoining-classes",
                    "overqualified-elements"
                ],
...

try

...
"ignore": "ids,box-model,font-sizes,unique-headings,import,qualified-headings,adjoining-classes,overqualified-elements",
...

:smile:

0 Likes