Allow all 12.x and 14.x Node.js versions to be used #4465
Labels
package: eslint-plugin
Issues related to @typescript-eslint/eslint-plugin
wontfix
This will not be worked on
Since this commit b63013a and specifically the major version 5.x of the plugin, this package is requiring specifically the v14.17 version of Node.js as part of the
engines
rule, such as:Is there a reason for specifically setting a lower cap on v12.22 and v14.17 minor versions? Because if this is about being LTS compliant than the rule should really be:
To allow all supported (v12 and v14) Node.js versions to be used.
Why didn't we hear about this before?
This might not seem as an issue for npm users, because the default engines configuration is to shoot out a WARNING issue, rather than failing it, but some versions of yarn, such as 1.22.10 explicitly fails any
npm install
of such projects. See here:If you confirm this issue and would be open to receiving a fix to relax the Node.js engines config on package.json then I'm happy to push forward a quick PR to suggest the fix/
Repro
Run
npm init -y
Use Node.js version v16 (any patch and any minor)
Run
npm install
All work fine
Run
npm init -y
Use Node.js version v14.15.1
Update the
package.json
to include:npm install
Expected Result
Expect for all Node.js v14 and v12 to be supported, as is indeed the case (you can confirm here https://github.com/nodejs/Release#release-schedule)
Actual Result
Getting an error about incomplete Node.js version when trying to install this package
Versions
@typescript-eslint/eslint-plugin
5.10.0
@typescript-eslint/parser
X.Y.Z
node
14.15.1
The text was updated successfully, but these errors were encountered: