keithamus / eslint-plugin-escompat

Report errors for code which wont work in browsers without transpiling
MIT License
39 stars 7 forks source link

BigInt Constructor not found #41

Open Rudolphous opened 1 month ago

Rudolphous commented 1 month ago

According to can i use bigint constructor works on safari 14+ https://caniuse.com/mdn-javascript_builtins_bigint_bigint

The plugin does not spot this issue on the following repo: https://github.com/Rudolphous/eslint-testing/tree/bigint

Is this missing, or was it a conscious choice to leave this out?

brettz9 commented 1 month ago

As per #36, some features are missing.

Try using eslint-plugin-compat (instead of this escompat plugin) with settings: {lintAllEsApis: true}. That appears to catch the BigInt constructor as well.