From 982e36963d3fe281faed54ff488d7359d4bdcafa Mon Sep 17 00:00:00 2001 From: Rhys Arkins Date: Tue, 9 Nov 2021 07:48:31 +0100 Subject: [PATCH] chore: re-enable eslint no-console --- .eslintrc.js | 1 + lib/config-validator.ts | 2 ++ lib/workers/global/config/parse/cli.ts | 1 + 3 files changed, 4 insertions(+) diff --git a/.eslintrc.js b/.eslintrc.js index 7162401f80..544743d0ca 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -37,6 +37,7 @@ module.exports = { // other rules 'consistent-return': 'error', + 'no-console': 'error', 'no-negated-condition': 'error', 'no-param-reassign': 'error', 'sort-imports': [ diff --git a/lib/config-validator.ts b/lib/config-validator.ts index 2c6ddc237f..fadf2c9b4b 100644 --- a/lib/config-validator.ts +++ b/lib/config-validator.ts @@ -13,6 +13,8 @@ import { getConfig as getFileConfig } from './workers/global/config/parse/file'; let returnVal = 0; +/* eslint-disable no-console */ + async function validate( desc: string, config: RenovateConfig, diff --git a/lib/workers/global/config/parse/cli.ts b/lib/workers/global/config/parse/cli.ts index 31a3912827..4bc1d6c977 100644 --- a/lib/workers/global/config/parse/cli.ts +++ b/lib/workers/global/config/parse/cli.ts @@ -85,6 +85,7 @@ export function getConfig(input: string[]): AllConfig { } }); + /* eslint-disable no-console */ /* istanbul ignore next */ function helpConsole(): void { console.log(' Examples:');