Hi Unicorn, first things first: kudos for your priceless work, big fan of yours 🦄
Got a problem tho with unicorn/prefer-dom-node-dataset
and optional chaining
The following code should raise an exception, and yet it doesn't:
document.querySelector('body')?.getAttribute('data-some-dataset');
Removing the optional chaining "?." raise an error as expected ;)
Thanks in advance for your time, wish you joy and rainbows
Pay now to fund the work behind this issue.
Get updates on progress being made.
Maintainer is rewarded once the issue is completed.
You're funding impactful open source efforts
You want to contribute to this effort
You want to get funding like this too