7 comments

What file is it? WebStorm reports no errors for data- attributes:

0

Please hover over the highlighted attribute and hit Alt+Enter - what actions are shown? please attach a screenshot

0

Thanks for the reply Elena.

Your question put me in the right track and I've found a solution: Settings > Editor > Inspections > Unknown HTML boolean tag attribute > add data-nosnippet to the custom list:

For information, to answer your question the suggested actions were to "Add attribute value" and to "Remove attribute".

0

Jetbrains seems to be ignoring this issue for a long time. Having to tolerate warnings like that defeats the purpose of trusting the warnings in the first place. For teams striving for code quality, this is not a small issue (even if people are not being as vocal about it as they should).

At the end of the day, investments made towards code quality are super important. I hope they will eventually do the right thing here.

0

This happens in Svelte as well and its kind of annoying. I've tried everything to suppress this warning including disabling the HTML boolean inspection check.

Example:

2

Man, how I hate JetBrains for things such this! It has been YEARS and they simple don't care to give us an option to disable this fuc#*&% warning!!!

-4

Please sign in to leave a comment.