mysticatea / eslint-plugin-node

Additional ESLint's rules for Node.js
MIT License
960 stars 170 forks source link

💥 Update node/no-unsupported-features/node-builtins with crypto.randomUUID #329

Open shtaft opened 2 years ago

shtaft commented 2 years ago

This commit adds support for the crypto.randomUUID method, which was added to the standard lib in v14.17.0.

https://nodejs.org/docs/latest-v14.x/api/crypto.html#crypto_crypto_randomuuid_options

voxpelli commented 1 year ago

eslint-plugin-n is the maintained version of this module.

We switched to it in eg. eslint-config-standard / standard and it is maintained by me and other members of the official ESLint community organization.

Try that module out and if it isn't fixed there, then open a new PR in that project.