fix: Tweak mention style in comments to be more visible

This commit is contained in:
Tom Moor
2023-04-11 22:41:05 -04:00
parent 49d903d6d4
commit d6b51f3053
3 changed files with 9 additions and 4 deletions

View File

@@ -1,12 +1,12 @@
/* eslint-disable @typescript-eslint/ban-types */
import Logger from "@server/logging/Logger";
const Deprecated = (message?: string) => (
target: Object,
propertyKey: string
) => {
if (process.env[propertyKey]) {
Logger.warn(
// eslint-disable-next-line no-console
console.warn(
`The environment variable ${propertyKey} is deprecated and will be removed in a future release. ${message}`
);
}