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.
20 lines • 721 B
TypeScript
/**
* Check if the path is relative to the parent directory.
* @param path - The path to check.
* @returns True if the path is relative to the parent directory.
*/
export declare function isRelativeToParent(path: string): boolean;
/**
* Check if the given path exists.
* @param path - The path to check.
* @returns True if the path exists.
*/
export declare function isExistingPath(path: string): boolean;
/**
* Check if the path is external.
* @param path - The path to check.
* @param packagePath - The package path to resolve against.
* @returns True if the path is external.
*/
export declare function isExternalPath(path: string, packagePath: string): boolean;
//# sourceMappingURL=import-types.d.ts.map