Skip to content

Migrating to ES modules #181

Open
Open
@43081j

Description

@43081j

We should be able to migrate the package to ESM now that all LTS other than 18.x support require(esm)

Basically, the only people affected will be those using flat configs written in CJS format with a version of node lower than 20.

Legacy config will already support this as it uses import under the hood to load the plugin.

In those cases, they can move their config file to eslint.config.mjs without having to migrate their entire repo.

I'd be happy to contribute this if you're on board

Activity

43081j

43081j commented on Mar 20, 2025

@43081j
Author

here it is if we ever want it:
main...43081j:eslint-plugin-solid:esm-only

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @43081j

        Issue actions

          Migrating to ES modules · Issue #181 · solidjs-community/eslint-plugin-solid