eslint-plugin-path
Version:
An ESLint plugin for enforcing consistent imports across project. In other words, it helps to replace all relatives import with absolutes dependinng on settings.
22 lines • 852 B
TypeScript
/**
* Helps to detect if a path exists or not
* @param map - The object to check the path in
* @param path - The path to check
* @returns True if the path exists, false otherwise
*/
export declare function isPathExists(map: Record<string, any>, path: string): boolean;
/**
* Loads and parses JSON files
* @param dir - The directory where the file is located
* @param filename - The name of the file to load
* @returns The parsed JSON file
*/
export declare function loadConfigFile(dir: string, filename: string): any;
/**
* Helps to check if a file exists
* @param dir - The directory where the file might be located
* @param filename - The name of the file to check
* @returns True if the file exists, false otherwise
*/
export declare function isFileExists(dir: string, filename: string): boolean;
//# sourceMappingURL=helpers.d.ts.map