-
Notifications
You must be signed in to change notification settings - Fork 9
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
Support ESM #504
Comments
Do you have a public example to link to? Is your plugin compiled to CJS? Or are you using flat config? (#376). |
Thank you for your fast response!
https://github.com/nirtamir2/eslint-plugin-default-import-name nirtamir2/eslint-plugin-default-import-name@7c545cf - this is the commit I converted to ESM only. I did not want to lose the |
With ESM, you still have a build command and compiled CJS output, right? If this is the case, then the solution is normally to just ensure the build runs before running eslint-doc-generator: https://github.com/bmish/eslint-doc-generator#build-tools {
"build": "tsc",
"update:eslint-docs": "npm run build && eslint-doc-generator"
} |
Not if they’re using native ESM. |
@bmish I ran into this with a new native ESM project. Because You can probably somewhat account for this by checking |
Those that stop doing so almost universally leave the majority of their users stuck on the last version to do so, so i think that's still something that can be relied on. |
Hi!
Thank you for creating this tool!
I would like to create ESM only ESLint plugin, and this rule tries to require stuff inside so it's not compatible
I would like it to work with ESM.
Thanks!
The text was updated successfully, but these errors were encountered: