Description
Right now, I have to write the following with this rule (see Pass for how I'd like to write this). Even with all allow* options turned on.
const listener: (event: ClipboardEvent, link: string) => void = (event, link) => {
event.clipboardData?.setData('text/plain', link);
event.preventDefault();
};
Fail
const listener = (event: ClipboardEvent, link: string) => {
event.clipboardData?.setData('text/plain', link);
event.preventDefault();
return true;
};
Pass
const listener = (event: ClipboardEvent, link: string) => {
event.clipboardData?.setData('text/plain', link);
event.preventDefault();
};