test-forbidden-regex
Version:
Test helper for testing forbidden regex
7 lines (6 loc) • 440 B
TypeScript
import 'colors';
export declare function testForbiddenRegex(regularExpressions: RegExp | RegExp[], folderPath?: string[] | string, errorText?: string, cb?: (errors?: string | string[] | {
message: string;
}) => void): void;
export declare const noImportsInFolder: (folder: string, pattern: RegExp | string | Array<RegExp | string>, noSrc?: boolean) => (done: any) => void;
export declare const relativeImportStartedFromTwoDots: RegExp;