UNPKG

eslint-plugin-export-scope

Version:

Don't leak LOCAL utils, states, components into the global scope

11 lines (10 loc) 497 B
import { type TSESTree } from "@typescript-eslint/utils"; type ScopeDeclaration = { type: "scope" | "scopeDefault" | "scopeException"; path: string; loc: TSESTree.SourceLocation; }; export declare const getScopeDeclarations: (comments: TSESTree.Comment[]) => ScopeDeclaration[]; export declare const getPathLoc: (text: string, loc: TSESTree.SourceLocation) => TSESTree.SourceLocation; export declare const extractPathFromImport: (node: TSESTree.Node) => string | undefined; export {};