Skip to content

read package.json type to determine output .mjs or .js #204

@kecrily

Description

@kecrily

To that end, I think we could update @eslint/create-config to read an existing package.json to determine the type and output eslint.config.js when the project is ESM and eslint.config.mjs only when it's not.

Originally posted by @nzakas in #20129

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    Complete

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions