mysticatea / eslint-plugin-node

Additional ESLint's rules for Node.js
MIT License
958 stars 167 forks source link

no-unsupported-features/es-syntax: Nullish coalescing operator requires >=14 #266

Closed kevinoid closed 3 years ago

kevinoid commented 3 years ago

According to the Node.js v14 release notes, node.green, and my own testing, the ES2020 nullish coalescing operator (??) (TC39 proposal) is supported by Node.js v14 and later. However, eslint-plugin-node@11.1.0 does not warn when it is used in packages where engines.node includes lower versions. It would be great if ?? could be added to no-unsupported-features/es-syntax.

Thanks for considering, Kevin