Skip to content
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

Migrating to ES modules #2718

Open
43081j opened this issue Mar 19, 2025 · 0 comments
Open

Migrating to ES modules #2718

43081j opened this issue Mar 19, 2025 · 0 comments

Comments

@43081j
Copy link
Contributor

43081j commented Mar 19, 2025

Now that all LTS versions of node other than 18.x (which is soon to fall out of LTS) support require(esm), it means we should be able to move to ES modules.

ESLint will internally already import(module) plugins when used by legacy eslintrc configs.

So the people this would affect are those using CommonJS flat configs in a version of Node below 20.

Given they're already using a version of ESLint which supports flat config, they could quite easily move their config to eslint.config.mjs without having to migrate their whole repo to ES modules.

This all tells me it should be a fairly safe move to change this repo to type: "module". What do you think?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant