@nx/eslint
Version:
26 lines (25 loc) • 2 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.ESLINT_V8_DEPRECATION_MESSAGE = exports.ESLINT_EXECUTOR_DEPRECATION_MESSAGE = void 0;
exports.warnEslintExecutorDeprecation = warnEslintExecutorDeprecation;
exports.warnEslintExecutorGenerating = warnEslintExecutorGenerating;
exports.warnEslintV8Deprecation = warnEslintV8Deprecation;
const devkit_1 = require("@nx/devkit");
// TODO(v24): Remove the @nx/eslint:lint executor. The inferred plugin
// (@nx/eslint/plugin) and the convert-to-inferred generator stay supported.
exports.ESLINT_EXECUTOR_DEPRECATION_MESSAGE = 'The `@nx/eslint:lint` executor is deprecated and will be removed in Nx v24. Run `nx g @nx/eslint:convert-to-inferred` to migrate to the `@nx/eslint/plugin` inferred targets. See https://nx.dev/docs/guides/tasks--caching/convert-to-inferred for details.';
function warnEslintExecutorDeprecation() {
devkit_1.logger.warn(exports.ESLINT_EXECUTOR_DEPRECATION_MESSAGE);
}
function warnEslintExecutorGenerating() {
devkit_1.logger.warn('Generating a target that uses the deprecated `@nx/eslint:lint` executor. The executor will be removed in Nx v24. Run `nx g @nx/eslint:convert-to-inferred` next to migrate this target to the `@nx/eslint/plugin` inferred plugin and prevent future generators from emitting executor targets. See https://nx.dev/docs/guides/tasks--caching/convert-to-inferred for details.');
}
// TODO(v24): Remove ESLint v8 support. Concrete removals:
// - Raise `minSupportedEslintVersion` to '9.0.0' in versions.ts.
// - Delete `versionMap[8]` and the `CompatVersions` type alias.
// - Delete this constant + `warnEslintV8Deprecation` and their call sites.
// - Drop the v8 branch in the workspace-rule generator/template.
exports.ESLINT_V8_DEPRECATION_MESSAGE = 'Support for ESLint v8 is deprecated and will be removed in Nx v24. Please upgrade to ESLint v9.';
function warnEslintV8Deprecation() {
devkit_1.logger.warn(exports.ESLINT_V8_DEPRECATION_MESSAGE);
}