@nextcloud/eslint-config
Version:
Eslint shared config for nextcloud apps and libraries
18 lines (17 loc) • 666 B
TypeScript
/**
* Create a callback that takes a version number and checks if the version
* is valid compared to configured version / detected version.
*
* @param options Options
* @param options.cwd The current working directory
* @param options.physicalFilename The real filename where ESLint is linting currently
* @return Function validator, return a boolean whether current version satisfies minimal required for the rule
*/
export declare function createLibVersionValidator({ cwd, physicalFilename }: {
cwd: string;
physicalFilename: string;
}): ((version: string) => boolean);
/**
* Clear the module cache
*/
export declare function clearCache(): void;