I don't have experience with writing ESLint rules but I am wondering if @typescript-eslint/parser
can help improve some of the rules. For example, prefer-event-key
can extend its reach by detecting that the object type is KeyboardEvent and make the check.
function onKeyDown(e: KeyboardEvent) {
if (e.keyCode) {
// ...
}
}
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