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: Use updated types from @eslint/core #66

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open

Conversation

nzakas
Copy link
Member

@nzakas nzakas commented Nov 21, 2024

Prerequisites checklist

What is the purpose of this pull request?

Update the plugin to use the latest types from @eslint/core.

What changes did you make? (Give an overview)

  • Added types.ts files to define types.
  • Updated rules to use RuleDefinition type
  • Updated JSONLanguage to use IJSONLanguage type
  • Updated JSONSourceCode to use IJSONSourceCode type

Related Issues

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

The types test fails with this, and I don't understand why. The project builds just fine. Maybe @fasttime can take a look?

@eslint-github-bot eslint-github-bot bot added the bug Something isn't working label Nov 21, 2024

json satisfies ESLint.Plugin;
// json satisfies ESLint.Plugin;
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

RuleModule is eslint is not compatible with RuleDefinition, so need to comment this out for now. I'll work on updating the types in eslint next.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant