@perfective/eslint-config
Version:
ESLint shareable rules configuration
11 lines (10 loc) • 357 B
TypeScript
/**
* Returns true if a given `module` can be resolved in node_modules.
*
* A module does not have to be required directly by the package.json.
* The function returns true,
* even if it is installed as a dependency of another dependency but can be loaded by Node.js.
*
* @protected
*/
export declare function hasNodeModule(module: string): boolean;