Skip to content

Conversation

@nzakas
Copy link
Member

@nzakas nzakas commented Feb 19, 2025

Prerequisites checklist

What is the purpose of this pull request?

Fix the type definitions for RuleContext to align with older @types/eslint types.

What changes did you make? (Give an overview)

  • packages/core/src/types.ts: Added a new RuleFixer type to handle rule fixes more flexibly.
  • packages/core/src/types.ts: Updated the fix and suggest properties in the ViolationReportBase interface to use the new RuleFixer type and allow null or undefined values.

New test cases:

Related Issues

Refs eslint/eslint#19441

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

@eslint-github-bot eslint-github-bot bot added the bug Something isn't working label Feb 19, 2025
nzakas and others added 2 commits February 20, 2025 17:17
Co-authored-by: Francesco Trotta <github@fasttime.org>
Copy link
Member

@fasttime fasttime left a comment

Choose a reason for hiding this comment

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

LGTM, thanks!

@fasttime fasttime merged commit 664740a into main Feb 21, 2025
18 checks passed
@fasttime fasttime deleted the report-types branch February 21, 2025 11:47
@github-actions github-actions bot mentioned this pull request Feb 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

accepted bug Something isn't working

Projects

Status: Complete

Development

Successfully merging this pull request may close these issues.

3 participants