Skip to content

Conversation

@fasttime
Copy link
Member

@fasttime fasttime commented Oct 21, 2025

Prerequisites checklist

What is the purpose of this pull request?

Export additional core types to be referenced by ESLint types to avoid duplications.

What changes did you make? (Give an overview)

This PR exports types that are either identical to ESLint types, or generics that can be used to declare ESLint types.

Core type ESLint type
BaseConfig Linter.BaseConfig
HasRules Linter.HasRules
JavaScriptSourceType Linter.SourceType
LintSuggestion Linter.LintSuggestion
RuleConfig (already exported) Linter.RuleEntry
RuleFixer Rule.ReportFixer
SuggestedEdit (already exported) Rule.SuggestionReportDescriptor
SuggestedEditBase Rule.SuggestionReportOptions
SuggestionMessage Rule.SuggestionDescriptorMessage
ViolationLocation Rule.ReportDescriptorLocation
ViolationMessage Rule.ReportDescriptorMessage
ViolationReport (already exported) Rule.ReportDescriptor
ViolationReportBase Rule.ReportDescriptorOptions

Related Issues

Related to eslint/eslint#20168.

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

Did I miss something?

@github-project-automation github-project-automation bot moved this to Needs Triage in Triage Oct 21, 2025
@fasttime fasttime marked this pull request as ready for review October 21, 2025 08:37
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. Would like @mdjermanovic to review before merging.

@nzakas nzakas moved this from Needs Triage to Second Review Needed in Triage Oct 21, 2025
Copy link
Member

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

@mdjermanovic mdjermanovic merged commit 5ccde5b into main Oct 21, 2025
25 checks passed
@mdjermanovic mdjermanovic deleted the export-core-types branch October 21, 2025 15:45
@github-project-automation github-project-automation bot moved this from Second Review Needed to Complete in Triage Oct 21, 2025
@github-actions github-actions bot mentioned this pull request Oct 21, 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.

4 participants