UNPKG

eslint-plugin-export-scope

Version:

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

14 lines (13 loc) 927 B
import { type TSESTree } from "@typescript-eslint/utils"; export interface ValidationError { message: string; line: number; column: number; endLine: number; endColumn: number; } export declare const isInExceptionsArray: (node: TSESTree.Literal, parent?: TSESTree.Node) => boolean; export declare const validateScopeDeclarations: (comments: TSESTree.Comment[], exportDir: string, onError: (error: ValidationError) => void) => void; export declare const validateExportDefault: (declaration: TSESTree.ArrayExpression | TSESTree.Literal, exportDir: string, onError: (error: ValidationError) => void) => void; export declare const validateExceptionsArray: (arrayExpression: TSESTree.ArrayExpression, exportDir: string, onError: (error: ValidationError) => void) => void; export declare const validateLiteralInScope: (node: TSESTree.Literal, exportDir: string, onError: (error: ValidationError) => void) => void;