-
-
Notifications
You must be signed in to change notification settings - Fork 4.8k
Closed
Labels
acceptedThere is consensus among the team that this change meets the criteria for inclusionThere is consensus among the team that this change meets the criteria for inclusionbugESLint is working incorrectlyESLint is working incorrectlytypesRelated to TypeScript typesRelated to TypeScript types
Description
The types are still broken.
context.report(report);
doesn't accept aReportDescriptor
.import type { Rule } from 'eslint'; export function getReport(context: Rule.RuleContext) { const code = context.sourceCode; const report: Rule.ReportDescriptor = { messageId: '42', loc: code.getLocFromIndex(0), }; context.report(report); // <--- Error }
Originally posted by @Jason3S in #19414
See: https://stackblitz.com/edit/stackblitz-starters-m8ciayku?file=index.ts
Metadata
Metadata
Assignees
Labels
acceptedThere is consensus among the team that this change meets the criteria for inclusionThere is consensus among the team that this change meets the criteria for inclusionbugESLint is working incorrectlyESLint is working incorrectlytypesRelated to TypeScript typesRelated to TypeScript types
Type
Projects
Status
Complete