inxilpro / IntellijAlpine

Alpine.js plugin for IntelliJ IDEs like PhpStorm and WebStorm.
MIT License
49 stars 11 forks source link

Prevent IDE warning about missing required attributes when bound instead #44

Open crumple-zone opened 1 year ago

crumple-zone commented 1 year ago

It would be great if using bindings for DOM element required attributes didn't result in an IDE warning for "missing" attributes.

For example, the <img> element requires a src attribute. But when this is bound, PhpStorm doesn't understand that src is taken care of by :src and shows a warning:

image

I prefer the bad warning to turning off that inspection, but thought there might be a way around this.

joao-pedro-braz commented 1 year ago

The most recent PR (https://github.com/inxilpro/IntellijAlpine/pull/46) should fix that, while it's not merged you can refer to https://github.com/joao-pedro-braz/IntellijAlpine/releases/tag/v0.6.1 for an unsigned release.

crumple-zone commented 1 year ago

Thank you so much!

sprankhub commented 7 months ago

It would be really great if this could get fixed :)