function createDeprecationNotice({ deprecated }) {
	const deprecationNotice = [
		`@deprecated since ${deprecated.deprecatedSince}.`,
	];

	deprecationNotice.push(escapeForMultilineComment(deprecated.message));
	if (deprecated.replacedBy?.length) {
		const replacements = deprecated.replacedBy
			.map(replacedBy => {
				let replacement = formatNameAndURL(replacedBy.rule);

				if (replacedBy.plugin) {
					replacement += ` in ${formatNameAndURL(replacedBy.plugin)}`;
				}
				return replacement;
			})
			.join(" or ");

		deprecationNotice.push(`Please, use ${replacements}.`);
	}
	return deprecationNotice;
}
Returns the deprecation notice for a rule, prefixed by a `@deprecated` tag.
@param {RuleMetaData} ruleMeta The rule's `meta` object.
@returns {string[]} The deprecation notice for the specified rule.