eslint-plugin-node icon indicating copy to clipboard operation
eslint-plugin-node copied to clipboard

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

Open niftylettuce opened this issue 3 years ago • 1 comments

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 avatar Jan 07 '22 17:01 niftylettuce

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

niftylettuce avatar Jan 07 '22 17:01 niftylettuce