eslint-plugin-export-scope
Version:
Don't leak LOCAL utils, states, components into the global scope
10 lines (9 loc) • 391 B
TypeScript
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 extractPathFromImport: (node: TSESTree.Node) => string | undefined;
export {};