-
-
Notifications
You must be signed in to change notification settings - Fork 39
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
convert-commonjs-to-esm/exports not working #191
Comments
This is not really a good idea to use: exports.test = test; Since: exports = test; Will just overwrite |
One of third party modules I'm using now uses this way to export. |
Yes, just landed a new rule |
Is it works for you? |
I want to convert it to es module export. |
Upgrade to v33 and try it, should work for you use case. |
Tried, lots of plugin not found errors:
|
There is no more such plugins (they are merged to {
"rules": {
"strict-mode/add-missing": "off",
"package-json/add-type": "off",
"remove-console": "off",
"nodejs/convert-commonjs-to-esm": "on",
"try-catch/sync": "off"
}
} Is it works for you? |
.putout.json
lib.js
package.json
:putout lib.js --fix
exports in lib.js is not modified.
The text was updated successfully, but these errors were encountered: