Open electriquo opened 1 year ago
I have what seems to be the same issue - "Import and export declarations are not supported yet". Using v11.1.1 of this plugin.
Engines is "node": "^14.18.0 || >=16.0.0"
.
Even if I put an override comment at the top of a specific file to configure the version, I still get the error.
There's a big map of features and versions supported since here. There is null
in it for this particular feature.
The message I'm getting though is "Import and export declarations are not supported yet", which comes from here https://github.com/mysticatea/eslint-plugin-node/blob/master/lib/rules/no-unsupported-features/es-syntax.js#L577. no-modules
is an es-plugin-es feature by the same maintainer.
eslint-plugin-n
is the maintained version of this module.
We switched to it in eg. eslint-config-standard
/ standard
and it is maintained by me and other members of the official ESLint community organization.
eslint-plugin-n is the maintained version of this module.
@voxpelli do you mean that eslint-plugin-n should be used instead of eslint-plugin-node?
@foolioo exactly 🙂
When running ESLint, I get
Where
import()
is compatible since Node.js 13.2.0 and I am using Node.js 18.15.0The error seems to be false negative. Is this a bug or did is my configuration the issue?