UNPKG

@rushstack/eslint-plugin

Version:

An ESLint plugin providing supplementary rules for use with the @rushstack/eslint-config package

13 lines 1.04 kB
import { TSESTree, type TSESLint } from '@typescript-eslint/utils'; export interface IParsedImportSpecifier { loader?: string; importTarget: string; loaderOptions?: string; } export declare function getFilePathFromContext(context: TSESLint.RuleContext<string, unknown[]>): string; export declare function getRootDirectoryFromContext(context: TSESLint.RuleContext<string, unknown[]>): string | undefined; export declare function parseImportSpecifierFromExpression(importExpression: TSESTree.Expression): IParsedImportSpecifier | undefined; export declare function serializeImportSpecifier(parsedImportPath: IParsedImportSpecifier): string; export declare function getImportPathFromExpression(importExpression: TSESTree.Expression, relativeImportsOnly?: boolean): string | undefined; export declare function getImportAbsolutePathFromExpression(context: TSESLint.RuleContext<string, unknown[]>, importExpression: TSESTree.Expression, relativeImportsOnly?: boolean): string | undefined; //# sourceMappingURL=LintUtilities.d.ts.map