mysticatea / eslint-plugin-node

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

Error with engines using "||" OR separator for Node versions #315

Open niftylettuce opened 2 years ago

niftylettuce commented 2 years ago

Node docs allow you to use || in dependencies, and in our case here, engines field in package.json.

If you have a semver range such as >=8 <=12 || >= 14 it should exclude 13 and either you need Node v8 to 12 or Node v14+.

https://docs.npmjs.com/cli/v8/configuring-npm/package-json#dependencies

This project does not support the use of || at the moment.

niftylettuce commented 2 years ago

Related https://github.com/mysticatea/eslint-plugin-node/issues/212