amilajack / eslint-plugin-compat

Check the browser compatibility of your code
MIT License
3.08k stars 106 forks source link

mdn browser definition is outdated #610

Open maxired opened 10 months ago

maxired commented 10 months ago

Hi,

is seems that the mdn browser definition is outdated and cannot be updated. From what I understand, this code does not import directly @mdn/browser-compat-data, but uses ast-metadata-inferer as intermediate layer.

The issue is that ast-metadata-inferer is packages with it's own compat.json file, build at release time, with previous version of @mdn/browser-compat-data. this means that upgrading @mdn/browser-compat-data locally does not solve the issue

lapwingcloud commented 6 months ago

seems like this is the reason causing the linter not reporting the Array toReversed toSorted toSpliced methods

Merri commented 1 month ago

Does this mean all browser features added after February 2023 are not being caught at the moment?

I was about to add eslint-plugin-compat to protect against a mistake I made (using toSpliced) but it does not catch it so I feel like the tool is not worth the added complexity for now.