UNPKG

@nx/eslint-plugin

Version:

The eslint-plugin package is an ESLint plugin that contains a collection of recommended ESLint rule configurations which you can extend from in your own ESLint configs, as well as an Nx-specific lint rule called enforce-module-boundaries.

18 lines (17 loc) 346 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.packageExists = packageExists; /** * Checks if package is available * @param name name of the package * @returns */ function packageExists(name) { try { require.resolve(name); return true; } catch { return false; } }