Skip to content

js import function for dynamic ts support #173

@Sysix

Description

@Sysix

oxlint-migrate has some request to support eslint.config.ts out of the box without any configuration.
See oxc-project/oxlint-migrate#109
Normally, the user needs one of this configuration:

npx --node-options="--import @oxc-node/core/register" @oxlint/migrate
npx --node-options="--import jiti/register" @oxlint/migrate

And experimental for node:

npx --node-options="--experimental-strip-types" @oxlint/migrate

ESLint itself supports jiti.import out of the box without extra arguments:
https://github.com/eslint/eslint/blob/4ab44823df4d4b47d3650da949077a0551e7579e/lib/config/config-loader.js#L141-L175

Questions

Is it possible to have the same functionality with oxc-node?

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions