7 comments
Comment actions Permalink

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

0
Comment actions Permalink

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

0
Comment actions Permalink

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
Comment actions Permalink

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
Comment actions Permalink

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:

1
Comment actions Permalink

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!!!

-2

Please sign in to leave a comment.