Require using passive event listener when not using event.preventDefault()
.
This rule can be auto-fixed as long as event.preventDefault()
is not called and the event
parameter is not passed anywhere.
window.addEventListener('wheel', () => {/* … */});
window.addEventListener('wheel', () => {/* … */}, {passive: true});
foo.addEventListener('click', event => {
event.preventDefault();
});
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