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?
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.
I had to use:
{
"css.lint.unknownProperties": "ignore"
}
In my settings.json
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With