Skip to content

Conversation

@fasttime
Copy link
Member

@fasttime fasttime commented Apr 3, 2025

This PR exports the type definition for MarkdownRuleDefinition, making it accessible to consumers.

refs eslint/eslint#19521

@fasttime fasttime marked this pull request as ready for review April 3, 2025 10:56
@fasttime fasttime added this to Triage Apr 3, 2025
@github-project-automation github-project-automation bot moved this to Needs Triage in Triage Apr 3, 2025
@fasttime fasttime requested a review from Copilot April 3, 2025 10:57
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR exports the MarkdownRuleDefinition type to make it available for consumers, ensuring type consistency across rule definitions.

  • Adds an import for MarkdownRuleDefinition in the test suite.
  • Updates typedefs in src/index.js to support generic usage of MarkdownRuleDefinition.

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
tests/types/types.test.ts Adds type tests to validate MarkdownRuleDefinition compatibility tests.
src/index.js Updates JSDoc typedefs to export and accurately type MarkdownRuleDefinition with generics.

Copy link
Member

@nzakas nzakas 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!

@nzakas nzakas merged commit 13dfd5e into main Apr 4, 2025
15 checks passed
@nzakas nzakas deleted the export-markdown-rule-definition branch April 4, 2025 19:27
@github-project-automation github-project-automation bot moved this from Needs Triage to Complete in Triage Apr 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

Status: Complete

Development

Successfully merging this pull request may close these issues.

3 participants