keesschollaart81 / vscode-home-assistant

Visual Studio Code Extension for Home Assistant. ⭐ if you think this is cool!
MIT License
544 stars 114 forks source link

Mark to ignore warnings/errors #840

Open dudu631 opened 3 years ago

dudu631 commented 3 years ago

I bumped into a false positive on triggering tags and I was wondering if it's possible to comment to ignore warnings/errors.

image

Something like eslint disable /* eslint-disable no-eval */ would be nice.

Thanks!

VDRainer commented 3 years ago

Or something like 'Exclude files' in the Extension Settings. For example, there are always problems in ui-lovelace.yaml if you're using custom-cards. Auswahl_431

frenck commented 3 years ago

@VDRainer That sounds more like a bug that needs to be solved, not suppressed.

VDRainer commented 3 years ago

Thanks @frenck for the quick response. I'm inspecting my ui-lovelace.yaml at the moment as it seems not all 'style' tags raise that problem. Will open a new issue if i found some logic.

EDIT: Sorry frenk! :smile:

parautenbach commented 1 year ago

I'm looking for something like this when one gets errors for custom cards. A way to suppress single lines or blocks would be awesome.