Open rightaway opened 3 years ago
Same for me, I have following in my package.json
file:
"engines": {
"node": ">=14.0.0"
},
and still have errors everywhere: error Import and export declarations are not supported yet node/no-unsupported-features/es-syntax
.
Ended up disabling this rule completely.
This is a problem with npm workspaces as well with npm 7.x+, not necessarily exclusive to yarn.
engines
from package.json isn't read by theno-unsupported-features
rules when using yarn workspaces. If I set theengines
field in the root package.json file (in the same directory that eslintrc file is), the rule still uses the default of>=8.0.0
.