UNPKG

@nx/eslint

Version:

The ESLint plugin for Nx contains executors, generators and utilities used for linting JavaScript/TypeScript projects within an Nx workspace.

13 lines (12 loc) 570 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.assertSupportedEslintVersion = assertSupportedEslintVersion; const internal_1 = require("@nx/devkit/internal"); const deprecation_1 = require("./deprecation"); const versions_1 = require("./versions"); function assertSupportedEslintVersion(tree) { (0, internal_1.assertSupportedPackageVersion)(tree, 'eslint', versions_1.minSupportedEslintVersion); if ((0, versions_1.getInstalledEslintMajorVersion)(tree) === 8) { (0, deprecation_1.warnEslintV8Deprecation)(); } }