@nx/eslint
Version:
11 lines (10 loc) • 388 B
JavaScript
Object.defineProperty(exports, "__esModule", { value: true });
exports.hasEslintPlugin = hasEslintPlugin;
const devkit_1 = require("@nx/devkit");
function hasEslintPlugin(tree) {
const nxJson = (0, devkit_1.readNxJson)(tree);
return nxJson.plugins?.some((p) => typeof p === 'string'
? p === '@nx/eslint/plugin'
: p.plugin === '@nx/eslint/plugin');
}
;