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

fix: make types usable in CommonJS #77

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

fix: make types usable in CommonJS #77

wants to merge 1 commit into from

Conversation

fasttime
Copy link
Member

Prerequisites checklist

What is the purpose of this pull request?

Similar to eslint/rewrite#143, this PR ensures that the @eslint/json types can be imported from a CommonJS module when moduleResolution is one of 'node16' or 'nodenext'. This is currently not possible because of an issue with the types in @eslint/plugin-kit that has been fixed in the latest version v0.2.5.

What changes did you make? (Give an overview)

  • Updated dependency @eslint/plugin-kit to version spec "^0.2.5".
  • Made @eslint/core a runtime dependency of this package.
  • Added tests to ensure that @eslint/json can be imported from a .cts file.

Related Issues

refs eslint/rewrite#143.

Is there anything you'd like reviewers to focus on?

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

Successfully merging this pull request may close these issues.

1 participant