You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think this should be configurable / possible to disable.
In my case, Object.hasOwn is flagged because it’s unsupported in Safari < 15.4. However, it only actually fails in one out of ~20 usages. All the other usages are guarded by conditional logic (e.g. runtime checks), so they are never reported.
This makes the rule feel a bit too opinionated for some real-world cases, where developers should get a feedback by eslint-plugin-compat.
Activity
bschlenk commentedon Sep 22, 2023
I think it's meant to allow checking for the existence of a thing before using it, like
But it's too broad because it also means it doesn't catch
tujoworker commentedon Jan 13, 2026
I think this should be configurable / possible to disable.
In my case,
Object.hasOwnis flagged because it’s unsupported in Safari < 15.4. However, it only actually fails in one out of ~20 usages. All the other usages are guarded by conditional logic (e.g. runtime checks), so they are never reported.This makes the rule feel a bit too opinionated for some real-world cases, where developers should get a feedback by
eslint-plugin-compat.tujoworker commentedon Jan 13, 2026
Here is a PR to allow detection inside if statements. Hope it will be reviews by the maintainers.
github-actions commentedon Jan 23, 2026
🎉 This issue has been resolved in version 6.1.0 🎉
The release is available on:
Your semantic-release bot 📦🚀