- Disable the global console object with ESLint.
- Don't use console for logging; instead, use a proper logging solution that has a log level built-in feature, such as Winston, Pino, Log4js, or tslog.
- Set the log level to DEBUG on localhost, and set it to whatever you want in production (e.g., ERROR or WARN ). Use log.debug() for development logs.
Th... See more