Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I exclude files from css lint in vscode

VS Code seems to have a built in CSS linter, which is great. But there's a lot of code that I don't want to lint, as shown in the below screenshot. How do I exclude certain directories from being linted?

unwanted errors

like image 523
user60561 Avatar asked Jun 13 '17 13:06

user60561


2 Answers

Unfortunately, VS Code's built-in linter doesn't have an exclusion setting. You can only disable specific rules (see css. properties in settings.json).

You could try using the stylelint extension with the ignoreFiles setting (see this answer) instead.

like image 190
lucidiot Avatar answered Sep 20 '22 22:09

lucidiot


I had to use:

{
  "css.lint.unknownProperties": "ignore"
}

In my settings.json

like image 28
Jerry Green Avatar answered Sep 18 '22 22:09

Jerry Green