UNPKG

eslint-plugin-sonarjs

Version:
9 lines (8 loc) • 683 B
import ts from 'typescript'; import type { SourceCode } from 'eslint'; import type { SourceLocation } from 'estree'; import type { ParserServices, ParserServicesWithTypeInformation } from '@typescript-eslint/utils'; export type RequiredParserServices = ParserServicesWithTypeInformation; export declare function isRequiredParserServices(services: ParserServices | undefined): services is RequiredParserServices; /** Map compiler diagnostics through ESTree, whose locations Vue restores to the SFC. */ export declare function getTypeScriptDiagnosticLocation(sourceCode: SourceCode, services: RequiredParserServices, diagnostic: ts.DiagnosticWithLocation): SourceLocation | undefined;